Disallow StringMethods for Series and Index when subtype is not str
, but allow for Any
#1159
Labels
mypy bug
Requires mypy to fix a bug
In #1146 tried to get
StringMethods
to know that passingSeries[float]
(for example) is wrong.I got something to work for
Series
withpyright
. See https://github.com/Dr-Irv/pandas-stubs/tree/pr1146 and this commit: 164bc27Would like to add this to the stubs.
But as noted here: #1146 (comment) it fails in
mypy
which seems to be due to python/mypy#15921The text was updated successfully, but these errors were encountered: