Skip to content

Commit

Permalink
Support mypy-1.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kedder committed Dec 9, 2023
1 parent 0552f8d commit 23473f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Expand Up @@ -28,7 +28,7 @@ packages =
zope-stubs
package_dir = =src
install_requires =
mypy>=1.0.0,<1.6.0
mypy>=1.0.0,<1.8.0
zope.interface
zope.schema
include_package_data = True
Expand Down
2 changes: 1 addition & 1 deletion src/mypy_zope/plugin.py
Expand Up @@ -496,7 +496,7 @@ def _get_metadata(self, typeinfo: TypeInfo) -> Dict[str, Any]:

def _is_interface(self, typeinfo: TypeInfo) -> bool:
md = self._get_metadata(typeinfo)
return md.get("is_interface", False)
return cast(bool, md.get("is_interface", False))

def _adjust_interface_function(
self,
Expand Down

0 comments on commit 23473f1

Please sign in to comment.