Summary
I've a 3rd party library that exposes some configuration through module variables, so I've to overwrite them in order for the library to work as I want. But when I run ty check on my code I got an error that can be reproduced with the minimal example below.
a.py:
main.py
I got the following error:
Object of type `Literal[2]` is not assignable to attribute `MY_VAR` of type `Literal[1]` (invalid-assignment) [Ln 3, Col 1]
Version
ty 0.0.1-alpha.32
Summary
I've a 3rd party library that exposes some configuration through module variables, so I've to overwrite them in order for the library to work as I want. But when I run
ty checkon my code I got an error that can be reproduced with the minimal example below.a.py:
main.py
I got the following error:
Version
ty 0.0.1-alpha.32