(value: Any, type: type[T])
| 299 | |
| 300 | @staticmethod |
| 301 | def __makeSimpleAttribute(value: Any, type: type[T]) -> Attribute[T]: |
| 302 | if value is None or isinstance(value, type): |
| 303 | return _ValuedAttribute(value) # type: ignore |
| 304 | else: |
| 305 | return _BadAttribute(value, type) # type: ignore |
| 306 | |
| 307 | @staticmethod |
| 308 | def __makeSimpleListAttribute(value: list, type: type[T]) -> Attribute[T]: |
no test coverage detected