Skip to content

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.

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