(annotation: Any)
| 124 | |
| 125 | |
| 126 | def is_bytes_or_nonable_bytes_annotation(annotation: Any) -> bool: |
| 127 | if lenient_issubclass(annotation, bytes): |
| 128 | return True |
| 129 | origin = get_origin(annotation) |
| 130 | if origin is Union or origin is UnionType: |
| 131 | for arg in get_args(annotation): |
| 132 | if lenient_issubclass(arg, bytes): |
| 133 | return True |
| 134 | return False |
| 135 | |
| 136 | |
| 137 | def is_uploadfile_or_nonable_uploadfile_annotation(annotation: Any) -> bool: |
no test coverage detected
searching dependent graphs…