diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-04-18 22:05:19 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-04-19 20:32:26 +0200 |
commit | 58b7995ffd255b7b315b99cfe59d5a0e21465cd9 (patch) | |
tree | d5aa57299655c3e01b8e441b7127b8f1f29d60a9 /astroid/brain/brain_functools.py | |
parent | 313e1e3ab217258db210b57f56f996335322836b (diff) | |
download | astroid-git-58b7995ffd255b7b315b99cfe59d5a0e21465cd9.tar.gz |
Fix useless return at end of function or method
Diffstat (limited to 'astroid/brain/brain_functools.py')
-rw-r--r-- | astroid/brain/brain_functools.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/astroid/brain/brain_functools.py b/astroid/brain/brain_functools.py index eebade6e..ae455122 100644 --- a/astroid/brain/brain_functools.py +++ b/astroid/brain/brain_functools.py @@ -52,7 +52,7 @@ class LruWrappedModel(objectmodel.FunctionModel): return BoundMethod(proxy=node, bound=self._instance.parent.scope()) -def _transform_lru_cache(node, context=None): +def _transform_lru_cache(node, context=None) -> None: # TODO: this is not ideal, since the node should be immutable, # but due to https://github.com/PyCQA/astroid/issues/354, # there's not much we can do now. @@ -60,7 +60,6 @@ def _transform_lru_cache(node, context=None): # in pylint, the old node would still be available, leading # to spurious false positives. node.special_attributes = LruWrappedModel()(node) - return def _functools_partial_inference(node, context=None): |