diff options
Diffstat (limited to 'astroid')
-rw-r--r-- | astroid/nodes/scoped_nodes/scoped_nodes.py | 3 |
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 = [] |