Skip to content

TYP: lib.pyi #40772

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 4 commits into from
Apr 8, 2021
Merged

TYP: lib.pyi #40772

merged 4 commits into from
Apr 8, 2021

Conversation

jbrockmendel
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • Ensure all linting tests pass, see here for how to run them
  • whatsnew entry

@jbrockmendel jbrockmendel added the Typing type annotations, mypy/pyright type checking label Apr 4, 2021
@jreback jreback added this to the 1.3 milestone Apr 8, 2021
@jreback jreback merged commit 8a5afc2 into pandas-dev:master Apr 8, 2021
@jbrockmendel jbrockmendel deleted the typ-no_default-2 branch April 8, 2021 14:26
@@ -6,7 +6,10 @@

import numpy as np

from pandas._libs.lib import no_default
from pandas._libs.lib import (
NoDefault,
Copy link
Member

Choose a reason for hiding this comment

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

we should probably import from pandas._typing.

alternatively we could have no_default as 'Any' in pandas/_libs/lib.pyi and not need to have any reference to it in the function signatures which are visible to end users and could be confusing/misleading. we should never pass lib.no_default explicitly unless passing it along to a lower level function

JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Jul 3, 2021
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.

3 participants