Allow Mypy/Zuban to ignore specific error codes#2153
Allow Mypy/Zuban to ignore specific error codes#2153davidhalter wants to merge 1 commit intopython:mainfrom
Conversation
This was the proposal of what Rebecca proposed in https://discuss.python.org/t/allow-type-ignore-mypy-style-error-codes-in-conformance-tests/105433/5
57549ff to
8d74622
Compare
|
This will need changes in the spec text as well as the conformance suite, and it will need to be approved by the Typing Council. (Personally, I'm supportive of doing something like this, but haven't thought too much about the exact proposal yet.) |
|
@JelleZijlstra What do you have in mind? My problem is that the spec is currently not specific about this at all (see this discussion) and I haven't gotten much feedback on where people would want to take this in the same thread. Would you want to add something to the spec like this:
This is of course just my initial idea, any guidance is appreciated. The current spec doesn't really talk about this, so this should be more of an addition. |
|
Something like that, yes. If the spec doesn't currently discuss this, that means we should add it. The spec text shouldn't call out any specific type checker (like mypy). Instead, we should generically say that type checkers may use syntax like |
Changes the error code from
additional_stufftoassignment(as Mypy uses it).This was the proposal Rebecca: