Skip to content

TYP: annotate two decorators #47184

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
Jun 1, 2022
Merged

TYP: annotate two decorators #47184

merged 1 commit into from
Jun 1, 2022

Conversation

twoertwein
Copy link
Member

No description provided.

@@ -62,7 +65,7 @@ def _any_pandas_objects(terms) -> bool:
return any(isinstance(term.value, PandasObject) for term in terms)


def _filter_special_cases(f):
def _filter_special_cases(f) -> Callable[[F], F]:
Copy link
Member

Choose a reason for hiding this comment

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

Looks like this is only used once to decorate the defined function below, so maybe can follow up by combining the two functions

@mroeschke mroeschke added the Typing type annotations, mypy/pyright type checking label Jun 1, 2022
@mroeschke mroeschke added this to the 1.5 milestone Jun 1, 2022
@mroeschke mroeschke merged commit ec32a00 into pandas-dev:main Jun 1, 2022
@mroeschke
Copy link
Member

Thanks @twoertwein

@twoertwein twoertwein deleted the decorator branch June 8, 2022 19:26
yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
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