diff options
Diffstat (limited to 'Lib/dataclasses.py')
-rw-r--r-- | Lib/dataclasses.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/dataclasses.py b/Lib/dataclasses.py index 71d9896..325b822 100644 --- a/Lib/dataclasses.py +++ b/Lib/dataclasses.py @@ -241,7 +241,7 @@ class Field: self.hash = hash self.compare = compare self.metadata = (_EMPTY_METADATA - if metadata is None or len(metadata) == 0 else + if metadata is None else types.MappingProxyType(metadata)) self._field_type = None |