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
I'm trying to create my own class that has IO capability.
The class instances would have names similar to file names, but specified at the moment of instance creation.
However when I try setting name field, mypy is protesting.
IO.name is defined as a property in both the typing implementation and the stubs. You need to override this property in your sub-class if you want to provide a setter:
I'm trying to create my own class that has IO capability.
The class instances would have names similar to file names, but specified at the moment of instance creation.
However when I try setting
name
field,mypy
is protesting.Here's the minimal repro:
mypy
output:The text was updated successfully, but these errors were encountered: