Repository: typeddjango/django-stubs

Issue:
Bump mypy from 1.0.1 to 1.1.1
Bumps [mypy](https://github.com/python/mypy) from 1.0.1 to 1.1.1.
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/python/mypy/commit/9b777a36315b1ba24ab840f9f905cfb6c82e35a9"><code>9b777a3</code></a> bump version to 1.1.1 for wheels build</li>
<li><a href="https://github.com/python/mypy/commit/6d355f57df1a664e9853891ca77af68944242d52"><code>6d355f5</code></a> [Release 1.1] Cherry-pick some mypyc build fixes (<a href="https://github-redirect.dependabot.com/python/mypy/issues/14820">#14820</a>)</li>
<li><a href="https://github.com/python/mypy/commit/a27dec535e3eb1ed8dab1625e592bce5ab9a7972"><code>a27dec5</code></a> Fix <code>--strict-equality</code> crash for instances of a class generic over a `ParamS...</li>
<li><a href="https://github.com/python/mypy/commit/c2016586d45767246d73bc38fd5b01e0d5c8f787"><code>c201658</code></a> Remove +dev from version number before release</li>
<li><a href="https://github.com/python/mypy/commit/17fba49939d4d8408f77e539290b24dd9b7f07ae"><code>17fba49</code></a> [1.1 backport] [dataclass_transform] include <strong>dataclass_fields</strong> in transfor...</li>
<li><a href="https://github.com/python/mypy/commit/f2cac4a1bf08874f3862cdb48cad7f908577c400"><code>f2cac4a</code></a> [1.1 backport] [dataclass_transform] detect transform spec changes in increme...</li>
<li><a href="https://github.com/python/mypy/commit/c03e979ca06c3bf082a4cd07458a1bc3205dc5e5"><code>c03e979</code></a> Stubtest: Link directly to line (<a href="https://github-redirect.dependabot.com/python/mypy/issues/14437">#14437</a>)</li>
<li><a href="https://github.com/python/mypy/commit/8a487ff248783fdc2fc0c1852a15f9fd6fbc12e8"><code>8a487ff</code></a> Sync typeshed (<a href="https://github-redirect.dependabot.com/python/mypy/issues/14733">#14733</a>)</li>
<li><a href="https://github.com/python/mypy/commit/c99133f405f286ed3429c809e9ae2cb3faaa2ceb"><code>c99133f</code></a> Fix for bug with <code>in</code> operation on optionals in <code>no-strict-optional</code> mode (<a href="https://github-redirect.dependabot.com/python/mypy/issues/1">#1</a>...</li>
<li><a href="https://github.com/python/mypy/commit/ef3187a64d10d1aacbf1d28171b4af00dcd1cb64"><code>ef3187a</code></a> Update commit hashes in sync typeshed script (<a href="https://github-redirect.dependabot.com/python/mypy/issues/14720">#14720</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/python/mypy/compare/v1.0.1...v1.1.1">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=mypy&package-manager=pip&previous-version=1.0.1&new-version=1.1.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>


Discussion:

Resolving patch:
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -31,7 +31,7 @@ def find_stub_files(name: str) -> List[str]:
 ]
 
 extras_require = {
-    "compatible-mypy": ["mypy>=1.0,<1.1"],
+    "compatible-mypy": ["mypy>=1.1.1,<1.2"],
 }
 
 setup(


Test patch:
diff --git a/tests/typecheck/contrib/sitemaps/test_generic_sitemap.yml b/tests/typecheck/contrib/sitemaps/test_generic_sitemap.yml
--- a/tests/typecheck/contrib/sitemaps/test_generic_sitemap.yml
+++ b/tests/typecheck/contrib/sitemaps/test_generic_sitemap.yml
@@ -45,10 +45,10 @@
         ]
     out: |
         main:24: error: Return type "str" of "items" incompatible with return type "Iterable[Offer]" in supertype "Sitemap"
+        main:26: error: Return type "int" of "location" incompatible with return type "str" in supertype "Sitemap"
         main:26: error: Argument 1 of "location" is incompatible with supertype "Sitemap"; supertype defines the argument type as "Offer"
         main:26: note: This violates the Liskov substitution principle
         main:26: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
-        main:26: error: Return type "int" of "location" incompatible with return type "str" in supertype "Sitemap"
         main:40: error: Argument 1 to "GenericSitemap" has incompatible type "Dict[str, List[int]]"; expected "Mapping[str, Union[datetime, _QuerySet[Offer, Offer], str]]"
 
     installed_apps: