File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ known_first_party = ['warehouse', 'tests']
5454
5555[tool .mypy ]
5656python_version = " 3.12"
57+ warn_unreachable = true
5758warn_unused_configs = true
5859warn_unused_ignores = true
5960plugins = [" mypy_zope:plugin" ]
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ def caveats(self, caveats: list[Caveat]):
106106
107107 # Intentionally not using a back references here, since we express
108108 # relationships in terms of the "other" side of the relationship.
109- user : Mapped [" User" ] = orm .relationship (lazy = True , viewonly = True )
109+ user : Mapped [User | None ] = orm .relationship (lazy = True , viewonly = True )
110110 # TODO: Can't annotate this as "OIDCPublisher" because that would create a
111111 # circular import.
112112 oidc_publisher = orm .relationship ("OIDCPublisher" , lazy = True , viewonly = True )
You can’t perform that action at this time.
0 commit comments