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
There are places in codebase like this where mypy won't be to detect variable's type and it will be termed as Any.
Are we planning to add any mypy stubs for such variables?
I am interested in this because in #124, one of the possible types of imagelab.info is pd.Series or pd.DataFrame but if we are not using stubs like pandas stubs then mypy will consider them (pd.Series) to Any datatype.
The text was updated successfully, but these errors were encountered:
Hi @Kadam-Tushar ! We are not using the pandas-stubs package because it only supports python>=3.8, whereas CleanVision currently also supports python 3.7. Also another point to note, as mentioned in the project readme the stubs are narrower than what pandas supports. We still want to add the types though, so that it is easier for new developers to understand the code and whenever we stop supporting 3.7 it is easier to use pandas-stubs.
There are places in codebase like this where
mypy
won't be to detect variable's type and it will be termed asAny
.Are we planning to add any mypy stubs for such variables?
I am interested in this because in #124, one of the possible types of
imagelab.info
ispd.Series
orpd.DataFrame
but if we are not using stubs like pandas stubs thenmypy
will consider them (pd.Series) toAny
datatype.The text was updated successfully, but these errors were encountered: