(cls: t.Type[BindMixin], **kwargs: t.Dict[str, t.Any])
| 111 | |
| 112 | @classmethod |
| 113 | def __init_subclass__(cls: t.Type[BindMixin], **kwargs: t.Dict[str, t.Any]) -> None: |
| 114 | if not ("metadata" in cls.__dict__ or "__table__" in cls.__dict__) and hasattr( |
| 115 | cls, "__bind_key__" |
| 116 | ): |
| 117 | bind_key = getattr(cls, "__bind_key__", None) |
| 118 | parent_metadata = getattr(cls, "metadata", None) |
| 119 | metadata = cls.__fsa__._make_metadata(bind_key) |
| 120 | |
| 121 | if metadata is not parent_metadata: |
| 122 | cls.metadata = metadata |
| 123 | |
| 124 | super().__init_subclass__(**kwargs) |
| 125 | |
| 126 | |
| 127 | class NameMetaMixin(type): |
no test coverage detected