Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: mypy 0.990 #419

Merged
merged 2 commits into from
Nov 8, 2022
Merged

CI: mypy 0.990 #419

merged 2 commits into from
Nov 8, 2022

Conversation

twoertwein
Copy link
Member

@twoertwein twoertwein commented Nov 8, 2022

closes #336

xref #400

@@ -1276,8 +1276,6 @@ class DataFrame(NDFrame, OpsMixin):
@property
def at(self): ... # Not sure what to do with this yet; look at source
@property
def bool(self) -> _bool: ...
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

declared as final in the implementation

Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Add some comments to explain some issues, and we should be good to go.

Can you also track which issues we can close because of this? (if there are any such issues)

pandas-stubs/core/series.pyi Show resolved Hide resolved
@@ -822,7 +822,7 @@ def test_sqlalchemy_selectable() -> None:
class Base(metaclass=sqlalchemy.orm.decl_api.DeclarativeMeta):
__abstract__ = True

class Temp(Base):
class Temp(Base): # type: ignore[misc]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a comment here as to why the # type: ignore is needed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I honestly don't understand why - I added the error reported by mypy

@bashtage
Copy link
Contributor

bashtage commented Nov 8, 2022

Are most of these due to inheritance?

@twoertwein
Copy link
Member Author

Are most of these due to inheritance?

Yes, mypy seems now to be stricter about enforcing that a property is inherited by a property.

Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @twoertwein

@Dr-Irv Dr-Irv merged commit 8333a14 into pandas-dev:main Nov 8, 2022
@Dr-Irv Dr-Irv mentioned this pull request Nov 8, 2022
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mypy 0.981 compatibility
3 participants