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

Add types.MappingProxyType to _builtin_types #470

Merged

Conversation

Jongy
Copy link
Contributor

@Jongy Jongy commented Jan 2, 2022

Essentially I need it so that "isinstance(netref, types.MappingProxyType)"
will return the expected result (True) if "netref" is a netref to MappingProxyType.
After this change, it works as expected.

I can add a test (e.g of isinstance) but I didn't find any suitable spot for that. (I think that we don't test all types in _builtin_types, anyway. We might want to?)

Essentially I need it so that "isinstance(netref, types.MappingProxyType)"
will return the expected result (True) if "netref" is a netref to MappingProxyType.
@comrumino
Copy link
Collaborator

comrumino commented Jan 7, 2022

I wouldn't worry too much about adding tests. I think those unit tests would come naturally with a fix to #355

@comrumino comrumino merged commit 98f8f5c into tomerfiliba-org:master Jan 7, 2022
@Jongy Jongy deleted the add-mappingproxytype-to-builtins branch January 7, 2022 10:00
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.

2 participants