Skip to content

Commit 4516438

Browse files
committed
Add more type annotations
1 parent b563da5 commit 4516438

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

curtsies/formatstring.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,10 @@
7373
class FrozenAttributes(Dict[str, Union[int, bool]]):
7474
"""Immutable dictionary class for format string attributes"""
7575

76-
@no_type_check
77-
def __setitem__(self, key, value):
76+
def __setitem__(self, key: str, value: Union[int, bool]) -> None:
7877
raise Exception("Cannot change value.")
7978

80-
@no_type_check
81-
def update(self, *args, **kwds):
79+
def update(self, *args: Any, **kwds: Any) -> None:
8280
raise Exception("Cannot change value.")
8381

8482
def extend(self, dictlike: Mapping[str, Union[int, bool]]) -> "FrozenAttributes":

0 commit comments

Comments
 (0)