'Unbound variable' error for class inheritance with global keyword #950
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Environment data
Description of issue
I use a somewhat... er... non-standard template for some files, intended to avoid any re-exporting of imported modules (see code sample below). It works fine so far until I try to include class inheritance into the game. Pylance would complain about all superclasses used this way, although the code itself runs fine.
Just wondering, if this is a false positive or a deliberate warning.
(As a side note, I'm aware that the standard way is to just mark everything as private with underscore prefix)
Screenshot
Code sample
The text was updated successfully, but these errors were encountered: