# Allow type: ignore Mypy style error codes in conformance tests

**URL:** <https://discuss.python.org/t/allow-type-ignore-mypy-style-error-codes-in-conformance-tests/105433>\
**Category:** Typing\
**Created:** [December 28, 2025, 12:44am UTC](https://discuss.python.org/t/allow-type-ignore-mypy-style-error-codes-in-conformance-tests/105433 "2025-12-28T00:44:59Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![rchen152](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/rchen152/32/16955_2.png) [@rchen152](https://discuss.python.org/u/rchen152)\
**Post date:** [January 5, 2026, 6:03pm UTC](https://discuss.python.org/t/allow-type-ignore-mypy-style-error-codes-in-conformance-tests/105433/10 "2026-01-05T18:03:25Z")

</div>

We could require whitespace after the `ignore`. So `# type: ignored` would not be a valid ignore, but `# type: ignore whatever` would be.

(I checked what pyrefly does, and we require either whitespace or a “word boundary” ([https://github.com/facebook/pyrefly/blob/4d38ea04b79bb578760daf3c3e3a620f2b8ce124/crates/pyrefly\_python/src/ignore.rs#L152](https://github.com/facebook/pyrefly/blob/4d38ea04b79bb578760daf3c3e3a620f2b8ce124/crates/pyrefly_python/src/ignore.rs#L152)), which does let us accept some things like `# type: ignore, is this an acceptable ignore?`, but I feel like that might be a little too complicated. From some quick testing in the playground, I think pyright uses whitespace.)

---

_[View the full topic](https://discuss.python.org/t/allow-type-ignore-mypy-style-error-codes-in-conformance-tests/105433)._
