Skip to content

Commit

Permalink
Fix linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyandrewmeyer committed Apr 11, 2024
1 parent 5cd77a6 commit 66ebeb3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ops/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@


# Copied from typeshed.
_KT = typing.TypeVar("_KT")
_VT_co = typing.TypeVar("_VT_co", covariant=True)


class _SupportsKeysAndGetItem(typing.Protocol[_KT, _VT_co]):
def keys(self) -> typing.Iterable[_KT]: ...
def __getitem__(self, __key: _KT) -> _VT_co: ...
Expand Down Expand Up @@ -1713,6 +1717,7 @@ def __getitem__(self, key: str) -> str:
return super().__getitem__(key)

def update(self, other: _SupportsKeysAndGetItem[str, str], **kwargs: str):
"""Update the data from dict/iterable other and the kwargs."""
super().update(other, **kwargs)

def __delitem__(self, key: str):
Expand Down

0 comments on commit 66ebeb3

Please sign in to comment.