Skip to content

Commit

Permalink
Add vague types to RecordWithoutPickling constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jun 25, 2024
1 parent ba4440c commit 6114840
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pytools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,10 @@ class RecordWithoutPickling:
__slots__: ClassVar[List[str]] = []
fields: ClassVar[Set[str]]

def __init__(self, valuedict=None, exclude=None, **kwargs):
def __init__(self,
valuedict: Optional[Mapping[str, Any]] = None,
exclude: Optional[Sequence[str]] = None,
**kwargs: Any) -> None:
assert self.__class__ is not Record

if exclude is None:
Expand Down

0 comments on commit 6114840

Please sign in to comment.