We cover every case as if/elif/elif. mypy can handle this fine, but pylint doesn't do control flow or type checking and thinks in the missing else case, the variable might not be defined. For mypy as well, doing this instance check is unnecessary as it can be inferred. So just micro-optimize the check and allow pylint to safely analyze the logic.pull/13224/head
parent
128f0e828e
commit
29a62ff794
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue