summaryrefslogtreecommitdiff
path: root/astroid/protocols.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2018-06-12 12:33:28 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2018-06-12 12:50:30 +0200
commit9799ad2a86d4c8bd1ecc6cb9008fbebd5df91a4e (patch)
tree7b9f24ed9bd2b61eca03bc881669edaa9e37fad1 /astroid/protocols.py
parentd4ae039a8514fb1c894e42f4cc5f0af9fea8a72c (diff)
downloadastroid-git-9799ad2a86d4c8bd1ecc6cb9008fbebd5df91a4e.tar.gz
Remove useless TODOs that are either issues in the issue tracker or things which we'll never get to fix/change
Diffstat (limited to 'astroid/protocols.py')
-rw-r--r--astroid/protocols.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/astroid/protocols.py b/astroid/protocols.py
index 18eb2ade..2d72ec82 100644
--- a/astroid/protocols.py
+++ b/astroid/protocols.py
@@ -310,7 +310,6 @@ def _arguments_infer_argname(self, name, context):
yield value
return
- # TODO: just provide the type here, no need to have an empty Dict.
if name == self.vararg:
vararg = nodes.const_factory(())
vararg.parent = self
@@ -437,7 +436,7 @@ def _infer_context_manager(self, mgr, context):
# Get the first yield point. If it has multiple yields,
# then a RuntimeError will be raised.
- # TODO(cpopa): Handle flows.
+
possible_yield_points = func.nodes_of_class(nodes.Yield)
# Ignore yields in nested functions
yield_point = next((node for node in possible_yield_points
@@ -445,7 +444,6 @@ def _infer_context_manager(self, mgr, context):
None)
if yield_point:
if not yield_point.value:
- # TODO(cpopa): an empty yield. Should be wrapped to Const.
const = nodes.Const(None)
const.parent = yield_point
const.lineno = yield_point.lineno