Skip to content

STYLE add future annotations where possible #47769

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

Merged
merged 1 commit into from
Jul 18, 2022

Conversation

MarcoGorelli
Copy link
Member

@MarcoGorelli MarcoGorelli added the Code Style Code style, linting, code_checks label Jul 17, 2022
Comment on lines -97 to -98
- repo: local
hooks:
Copy link
Member Author

Choose a reason for hiding this comment

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

not relevant to this PR, but there's no need to keep repeating repo: local, so removing these extra ones while I'm here

name: import annotations from __future__
entry: 'from __future__ import annotations'
language: pygrep
args: [--negate]
Copy link
Member Author

Choose a reason for hiding this comment

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

negate checks that the pattern in entry is always present (as opposed to checking it's absent)

@MarcoGorelli MarcoGorelli marked this pull request as draft July 17, 2022 19:28
@MarcoGorelli MarcoGorelli marked this pull request as ready for review July 17, 2022 19:35
@mroeschke mroeschke added this to the 1.5 milestone Jul 18, 2022
@mroeschke mroeschke merged commit e9655f5 into pandas-dev:main Jul 18, 2022
@mroeschke
Copy link
Member

Thanks @MarcoGorelli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Style Code style, linting, code_checks Typing type annotations, mypy/pyright type checking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

STYLE add check for future annotations
4 participants