summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniël van Noord <13665637+DanielNoord@users.noreply.github.com>2023-04-30 23:20:29 +0200
committerDaniël van Noord <13665637+DanielNoord@users.noreply.github.com>2023-05-01 12:41:04 +0200
commita72491ed427913ca873c1f455e6255a9b28c3017 (patch)
tree7f48def267523ced8945bad4bc03938b07c92474
parent5b785322376c6e4640ac9cf6c76f77d276a4c04b (diff)
downloadastroid-git-a72491ed427913ca873c1f455e6255a9b28c3017.tar.gz
Type ``decoratornames``
-rw-r--r--astroid/nodes/scoped_nodes/scoped_nodes.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/astroid/nodes/scoped_nodes/scoped_nodes.py b/astroid/nodes/scoped_nodes/scoped_nodes.py
index c42670b1..c5d328f6 100644
--- a/astroid/nodes/scoped_nodes/scoped_nodes.py
+++ b/astroid/nodes/scoped_nodes/scoped_nodes.py
@@ -1399,13 +1399,12 @@ class FunctionDef(
self.parent.frame(future=True), ClassDef
)
- def decoratornames(self, context: InferenceContext | None = None):
+ def decoratornames(self, context: InferenceContext | None = None) -> set[str]:
"""Get the qualified names of each of the decorators on this function.
:param context:
An inference context that can be passed to inference functions
:returns: The names of the decorators.
- :rtype: set(str)
"""
result = set()
decoratornodes = []