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.
(cherry picked from commit 29a62ff794
)
1.4
parent
9cf3354f32
commit
2d807d5d1e
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue