You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since mypy 1.0 the following code results in the following type error:
import envee
@envee.environment
class Environment:
one: int = 1
two: int # error: Attributes without a default cannot follow attributes with one [misc]`
env = envee.read(Environment)
The environment decorator of the envee library ensures that a dataclass with kw_only is created (if supported by Python) and indicates this using dataclass_transform(kw_only_default=True).
The text was updated successfully, but these errors were encountered:
Since mypy 1.0 the following code results in the following type error:
The environment decorator of the
envee
library ensures that a dataclass with kw_only is created (if supported by Python) and indicates this usingdataclass_transform(kw_only_default=True)
.The text was updated successfully, but these errors were encountered: