Repository: Shoobx/mypy-zope (language: python)

Issue:
Fix the test_samples unittest for the interface_implications.py case.
This should fix the tests issue raised in https://github.com/Shoobx/mypy-zope/pull/115


Discussion / hints:

Fix patch:
diff --git a/setup.cfg b/setup.cfg
index 2e706a5..bfd428b 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -27,7 +27,7 @@ packages =
     zope-stubs
 package_dir = =src
 install_requires =
-    mypy>=1.0.0,<1.10.0
+    mypy>=1.0.0,<1.11.0
     zope.interface
     zope.schema
 include_package_data = True


Test patch:
diff --git a/tests/samples/interface_implications.py b/tests/samples/interface_implications.py
index aaf47b6..528b865 100644
--- a/tests/samples/interface_implications.py
+++ b/tests/samples/interface_implications.py
@@ -36,8 +36,8 @@ def main(obj: Optional[IBookmark]) -> None:
 interface_implications.py:19: note: Revealed type is "None"
 interface_implications.py:21: note: Revealed type is "__main__.IBookmark"
 interface_implications.py:22: note: Revealed type is "Union[__main__.IBookmark, None]"
-interface_implications.py:26: note: Revealed type is "Type[__main__.IBookmark]"
-interface_implications.py:28: note: Revealed type is "Type[None]"
-interface_implications.py:29: note: Revealed type is "Union[Type[__main__.IBookmark], Type[None]]"
+interface_implications.py:26: note: Revealed type is "type[__main__.IBookmark]"
+interface_implications.py:28: note: Revealed type is "type[None]"
+interface_implications.py:29: note: Revealed type is "Union[type[__main__.IBookmark], type[None]]"
  </output>
 """