From a72491ed427913ca873c1f455e6255a9b28c3017 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Noord?= <13665637+DanielNoord@users.noreply.github.com> Date: Sun, 30 Apr 2023 23:20:29 +0200 Subject: Type ``decoratornames`` --- astroid/nodes/scoped_nodes/scoped_nodes.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'astroid') 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 = [] -- cgit v1.2.1