silence some mypy errors :/

I don't know the "right" way to make mypy happy with these things
This commit is contained in:
Jean-Paul Calderone 2021-11-04 14:40:43 -04:00
parent 6889ab2a76
commit 2186bfcc37
2 changed files with 3 additions and 3 deletions

View File

@ -169,8 +169,8 @@ class _V1(object):
ALL_SCHEMAS = {_V2, _V1}
ALL_SCHEMA_VERSIONS = {schema.version for schema in ALL_SCHEMAS}
NEWEST_SCHEMA_VERSION = max(ALL_SCHEMAS, key=lambda schema: schema.version)
ALL_SCHEMA_VERSIONS = {schema.version for schema in ALL_SCHEMAS} # type: ignore
NEWEST_SCHEMA_VERSION = max(ALL_SCHEMAS, key=lambda schema: schema.version) # type: ignore
def schema_from_version(version):
# (int) -> Optional[type]

View File

@ -252,7 +252,7 @@ class LeaseInfo(object):
@attr.s(frozen=True)
class HashedLeaseInfo(proxyForInterface(ILeaseInfo, "_lease_info")):
class HashedLeaseInfo(proxyForInterface(ILeaseInfo, "_lease_info")): # type: ignore # unsupported dynamic base class
"""
A ``HashedLeaseInfo`` wraps lease information in which the secrets have
been hashed.