Return True if type has a base type with the specified name. This can be either via extension or via implementation.
(self, fullname: str)
| 4094 | ) |
| 4095 | |
| 4096 | def has_base(self, fullname: str) -> bool: |
| 4097 | """Return True if type has a base type with the specified name. |
| 4098 | |
| 4099 | This can be either via extension or via implementation. |
| 4100 | """ |
| 4101 | for cls in self.mro: |
| 4102 | if cls.fullname == fullname: |
| 4103 | return True |
| 4104 | return False |
| 4105 | |
| 4106 | def direct_base_classes(self) -> list[TypeInfo]: |
| 4107 | """Return a direct base classes. |
no outgoing calls
no test coverage detected