(type_hint: type)
| 147 | |
| 148 | |
| 149 | def _is_dynamic_nullable_default(type_hint: type) -> bool: |
| 150 | if type_hint is typing.Any: |
| 151 | return True |
| 152 | origin = _get_origin(type_hint) |
| 153 | args = _get_args(type_hint) |
| 154 | if origin in (list, dict, set, tuple) and not args: |
| 155 | return True |
| 156 | return type_hint in (list, dict, set, tuple, typing.List, typing.Dict, typing.Set, typing.Tuple) |
| 157 | |
| 158 | |
| 159 | def _default_field_meta(type_hint: type, field_nullable: bool = False, xlang: bool = False) -> ForyFieldMeta: |
no test coverage detected