(self, values: _AnnotationDict)
| 302 | return new |
| 303 | |
| 304 | def _with_annotations(self, values: _AnnotationDict) -> Self: |
| 305 | clone = self.__class__.__new__(self.__class__) |
| 306 | clone.__dict__ = self.__dict__.copy() |
| 307 | clone.__dict__.pop("_annotations_cache_key", None) |
| 308 | clone.__dict__.pop("_generate_cache_key", None) |
| 309 | clone._annotations = util.immutabledict(values) |
| 310 | return clone |
| 311 | |
| 312 | @overload |
| 313 | def _deannotate( |