-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TYP: Add typing for remaining IO XML methods with conditional for lxml #40340
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
Conversation
ParfaitG
commented
Mar 10, 2021
- references Pandas IO XML Issue Tracker #40131
- tests passed
- Ensure all linting tests pass, see here for how to run them
- whatsnew entry (not necessary)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ci checks are failing
pandas/io/xml.py
Outdated
@@ -553,31 +535,62 @@ def _validate_names(self) -> None: | |||
f"{type(self.names).__name__} is not a valid type for names" | |||
) | |||
|
|||
def _parse_doc(self, raw_doc): | |||
if lxml is not None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm i find this odd that this is not in a function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I modify this entirely which did not pass ci/code_checks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor comment, pls merge master and ping on greenish
pandas/tests/io/xml/test_xml.py
Outdated
@@ -253,6 +254,10 @@ def test_parser_consistency_file(datapath): | |||
@tm.network | |||
@pytest.mark.slow | |||
@td.skip_if_no("lxml") | |||
@pytest.mark.skipif( | |||
sys.version_info < (3, 8), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you use the PY38 from compat
this is fine, ping when CI finishes and greenish (failure is being fixed elsewhere) |
thanks @ParfaitG |