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

Drop duplicated type checks in Schema._compile #495

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

emontnemery
Copy link
Contributor

Schema._compile calls isinstance to check for list and Mapping, hence the check further down testing for list or dict can never be True.

@alecthomas alecthomas merged commit 891b2ea into alecthomas:master Dec 1, 2023
6 checks passed
@alecthomas
Copy link
Owner

Nice catch, thanks.

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