Skip to content
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

REF: implement _shared_docs to de-circularize dependencies #34837

Merged
merged 11 commits into from
Jun 24, 2020

Conversation

jbrockmendel
Copy link
Member

A side effect of this is that a bunch of pd.concat imports can be done at import-time instead of at runtime, will do this in a separate pass.

@WillAyd
Copy link
Member

WillAyd commented Jun 18, 2020

nice idea - can you merge master?

@jbrockmendel
Copy link
Member Author

master merged; are the mypy complaints here real or ignorable?

@WillAyd
Copy link
Member

WillAyd commented Jun 19, 2020 via email

@gfyoung gfyoung added Internals Related to non-user accessible pandas implementation Refactor Internal refactoring of code labels Jun 20, 2020
@simonjayhawkins
Copy link
Member

This is weird...

with the change

        if isinstance(objs, (ABCSeries, ABCDataFrame, str)):
            raise TypeError(
                "first argument must be an iterable of pandas "
                f'objects, you passed an object of type "{type(objs).__name__}"'
            )

it appears mypy assumes __init__ always raises and does not process the rest of __init__ and the attributes are not defined.

This doesn't seem right. maybe mypy bug with combination of objs, ABCSeries and ABCDataFrame being Any.

adding type annotation for obj seems to fix.

@jreback
Copy link
Contributor

jreback commented Jun 20, 2020

can you merge master again. I think this module as shared_docs.py is fine as we are going to move core to _core anyhow.

@jbrockmendel
Copy link
Member Author

I think this module as shared_docs.py is fine as we are going to move core to _core anyhow.

updated+green

@WillAyd
Copy link
Member

WillAyd commented Jun 23, 2020

ex merge conflict this lgtm

@jreback jreback added this to the 1.1 milestone Jun 24, 2020
@jreback jreback merged commit f9e4c8c into pandas-dev:master Jun 24, 2020
@jreback
Copy link
Contributor

jreback commented Jun 24, 2020

great. you might want to create an issue and mark as good first so folks can move shared docs to the new location.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Internals Related to non-user accessible pandas implementation Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants