diff options
author | Nick Drozd <nicholasdrozd@gmail.com> | 2022-11-21 17:08:52 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-22 00:08:52 +0100 |
commit | 595c8bb416153ef3470b6d2ec41de0316fd5a769 (patch) | |
tree | 00f7fd2b3135b283cadb65eb583018d2fce75760 /astroid/inference.py | |
parent | 6b9f3b587acaa8db703d1038c9f2b19a23f2d21a (diff) | |
download | astroid-git-595c8bb416153ef3470b6d2ec41de0316fd5a769.tar.gz |
Add some bool annotations (#1877)
Diffstat (limited to 'astroid/inference.py')
-rw-r--r-- | astroid/inference.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/inference.py b/astroid/inference.py index 502e11b1..818a37a4 100644 --- a/astroid/inference.py +++ b/astroid/inference.py @@ -623,7 +623,7 @@ nodes.UnaryOp._infer_unaryop = _infer_unaryop nodes.UnaryOp._infer = infer_unaryop # type: ignore[assignment] -def _is_not_implemented(const): +def _is_not_implemented(const) -> bool: """Check if the given const node is NotImplemented.""" return isinstance(const, nodes.Const) and const.value is NotImplemented |