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

Use double quotes in errors related to NewType, TypeVar, namedTuple and TypedDict #10359

Merged
merged 4 commits into from
Apr 22, 2021

Conversation

dixith
Copy link
Contributor

@dixith dixith commented Apr 22, 2021

Description

This pull request fixes issue reported in #7445 for errors related to NewType, TypeVar, namedTuple and TypedDict

Test Plan

Updated test cases for the message. New test cases not added.

@github-actions
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

paasta (https://github.com/yelp/paasta.git)
- paasta_tools/iptables.py:23: error: First argument to namedtuple() should be '_RuleBase', not 'Rule'
+ paasta_tools/iptables.py:23: error: First argument to namedtuple() should be "_RuleBase", not "Rule"

manticore (https://github.com/trailofbits/manticore.git)
- manticore/native/cpu/x86.py:147: error: First argument to namedtuple() should be 'Regspec', not 'RegSpec'
+ manticore/native/cpu/x86.py:147: error: First argument to namedtuple() should be "Regspec", not "RegSpec"
- manticore/native/cpu/aarch64.py:43: error: First argument to namedtuple() should be 'Condspec', not 'CondSpec'
+ manticore/native/cpu/aarch64.py:43: error: First argument to namedtuple() should be "Condspec", not "CondSpec"
- manticore/native/cpu/aarch64.py:78: error: First argument to namedtuple() should be 'Regspec', not 'RegSpec'
+ manticore/native/cpu/aarch64.py:78: error: First argument to namedtuple() should be "Regspec", not "RegSpec"

@JelleZijlstra JelleZijlstra merged commit d326952 into python:master Apr 22, 2021
@dixith dixith deleted the double-quotes-errors-6 branch April 23, 2021 04:03
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