Skip to content

Commit

Permalink
Merge pull request #109 from Shoobx/mypy-1.7.1
Browse files Browse the repository at this point in the history
Support mypy-1.7.1
  • Loading branch information
kedder authored Dec 9, 2023
2 parents 0552f8d + 23473f1 commit 673e580
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 673e580

Please sign in to comment.