Skip to content

TYP: more misc annotations #56675

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 3 commits into from
Dec 29, 2023
Merged

TYP: more misc annotations #56675

merged 3 commits into from
Dec 29, 2023

Conversation

twoertwein
Copy link
Member

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

cf.register_option(
"format.formatter",
None,
styler_formatter,
validator=is_instance_factory([type(None), dict, Callable, str]),
validator=is_instance_factory(
(type(None), dict, Callable, str) # type: ignore[arg-type]
Copy link
Member Author

Choose a reason for hiding this comment

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

mypy is confused by Callable

@mroeschke mroeschke added the Typing type annotations, mypy/pyright type checking label Dec 29, 2023
@mroeschke mroeschke added this to the 3.0 milestone Dec 29, 2023
@mroeschke mroeschke merged commit 6703fec into pandas-dev:main Dec 29, 2023
@mroeschke
Copy link
Member

Thanks @twoertwein

cbpygit pushed a commit to cbpygit/pandas that referenced this pull request Jan 2, 2024
* TYP: more misc annotations

* workaround for Generic

* fix drop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Typing type annotations, mypy/pyright type checking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants