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

Remove redundant type ignores and fix typing errors #1759

Merged

Conversation

aucampia
Copy link
Member

@aucampia aucampia commented Mar 14, 2022

This seems to be related to changes in typeshed and mypy.

Also fixed comparison done by _isEqualXMLNode for
node.nodeType == XMLNode.DOCUMENT_TYPE_NODE,
it was comparing node.systemId == other.system.Id
instead of node.systemId == other.systemId.

@aucampia aucampia force-pushed the iwana-20220314T2212-fix_type_ignore branch 2 times, most recently from a61c0fd to de1c74b Compare March 14, 2022 21:25
@aucampia aucampia changed the title Remove redundant type ignore that is breaking the pipeline Remove redundant type ignores and fix typing errors Mar 14, 2022
@aucampia aucampia force-pushed the iwana-20220314T2212-fix_type_ignore branch from de1c74b to 5fcf5b8 Compare March 14, 2022 21:27
@aucampia
Copy link
Member Author

Just want to add a test for _isEqualXMLNode

This seems to be related to changes in typeshed and mypy.
This is to test comparison of Docuemnt Type XML Nodes.
@aucampia aucampia force-pushed the iwana-20220314T2212-fix_type_ignore branch from 8da8821 to 8829edc Compare March 14, 2022 23:32
Comparison done in `_isEqualXMLNode` for
`node.nodeType == XMLNode.DOCUMENT_TYPE_NODE`,
was comparing `node.systemId == other.system.Id`
instead of `node.systemId == other.systemId`.
@aucampia
Copy link
Member Author

Okay tests added now, issue reproduced here: https://github.com/RDFLib/rdflib/runs/5546115541

@aucampia aucampia marked this pull request as ready for review March 14, 2022 23:39
aucampia added a commit that referenced this pull request Mar 15, 2022
…ints

Add documentation about type hints

CI errors are unrelated to changes and are fixed in #1759
Copy link
Member

@white-gecko white-gecko left a comment

Choose a reason for hiding this comment

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

Everything fine for me.

@white-gecko white-gecko merged commit 273154f into RDFLib:master Mar 16, 2022
@aucampia aucampia deleted the iwana-20220314T2212-fix_type_ignore branch April 9, 2022 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants