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
{{ message }}
Repository navigation
Missing data attribute in UserDict, UserList and UserString #1759
changed the title [-]Missing data attribute UserDict, UserList and UserString[/-][+]Missing data attribute in UserDict, UserList and UserString[/+]on Nov 21, 2017
UserList.pyi and UserString.pyi have almost no annotation, so confirmed here.
UserDict.pyi has some and the UserDict class has the following definition:
class UserDict(Dict[_KT, _VT], Generic[_KT, _VT]):
data = ... # type: Mapping[_KT, _VT]
def __init__(self, initialdata: Mapping[_KT, _VT] = ...) -> None: ...
# TODO: __iter__ is not available for UserDict
so data does exist for UserDict (though there may be some reason why it is still failing.)
@Kentzo do you have any code that should work but is failing?
Activity
[-]Missing data attribute UserDict, UserList and UserString[/-][+]Missing data attribute in UserDict, UserList and UserString[/+]gossrock commentedon Dec 4, 2017
A few notes:
UserDict, UserList and UserString are Python2 only.
the files in question would be:
https://github.com/python/typeshed/blob/master/stdlib/2/UserDict.pyi
https://github.com/python/typeshed/blob/master/stdlib/2/UserList.pyi
https://github.com/python/typeshed/blob/master/stdlib/2/UserString.pyi
UserList.pyi and UserString.pyi have almost no annotation, so confirmed here.
UserDict.pyi has some and the UserDict class has the following definition:
so data does exist for UserDict (though there may be some reason why it is still failing.)
@Kentzo do you have any code that should work but is failing?
Kentzo commentedon Dec 4, 2017
I encountered the UserData.data problem in PyCharm. Perhaps I had an outdated version back then.