diff options
Diffstat (limited to 'examples/deprecation_checker.py')
-rw-r--r-- | examples/deprecation_checker.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/deprecation_checker.py b/examples/deprecation_checker.py index 03b8e3e36..fba6a54de 100644 --- a/examples/deprecation_checker.py +++ b/examples/deprecation_checker.py @@ -38,7 +38,7 @@ from module mymodule: ------------------------------------------------------------------ Your code has been rated at 2.00/10 (previous run: 2.00/10, +0.00) """ - +from typing import Set, Tuple from pylint.checkers import BaseChecker, DeprecatedMixin from pylint.interfaces import IAstroidChecker @@ -56,7 +56,7 @@ class DeprecationChecker(DeprecatedMixin, BaseChecker): # The name defines a custom section of the config for this checker. name = "deprecated" - def deprecated_methods(self): + def deprecated_methods(self) -> Set: """Callback method called by DeprecatedMixin for every method/function found in the code. Returns: @@ -64,7 +64,7 @@ class DeprecationChecker(DeprecatedMixin, BaseChecker): """ return {"mymodule.deprecated_function", "mymodule.MyClass.deprecated_method"} - def deprecated_arguments(self, method: str): + def deprecated_arguments(self, method: str) -> Tuple: """Callback returning the deprecated arguments of method/function. Returns: |