possibly-used-before-assignment
does not understand assert_never
#9643
Labels
C: used-before-assignment
Issues related to 'used-before-assignment' check
False Positive 🦟
A message is emitted but nothing is wrong with the code
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
Milestone
Bug description
The new
possibly-used-before-assignment
checker does not seem to understandassert_never()
, which is useful these days with type checkers for exhaustive conditional handling/etc.Configuration
No response
Command used
Pylint output
Expected behavior
assert_never
should prevent the error indo_thing_3
, just as the exception does fordo_thing_2
Pylint version
OS / Environment
macOS 14.5
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: