(
annotation: GenericProtocol[_T], elements: Tuple[_AnnotationScanType, ...]
)
| 227 | |
| 228 | |
| 229 | def _copy_generic_annotation_with( |
| 230 | annotation: GenericProtocol[_T], elements: Tuple[_AnnotationScanType, ...] |
| 231 | ) -> Type[_T]: |
| 232 | if hasattr(annotation, "copy_with"): |
| 233 | # List, Dict, etc. real generics |
| 234 | return annotation.copy_with(elements) # type: ignore |
| 235 | else: |
| 236 | # Python builtins list, dict, etc. |
| 237 | return annotation.__origin__[elements] # type: ignore |
| 238 | |
| 239 | |
| 240 | def eval_expression( |
no outgoing calls
no test coverage detected