| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 60b334e commit c9897d0
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,11 +35,10 @@ | |||
| 35 | 35 | ||
| 36 | 36 | class ModelMetaclass(type): | |
| 37 | 37 | """Populates ModelMetadata based on class attributes.""" | |
| 38 | + meta: metadata.ModelMetadata | ||
| 38 | 39 | ||
| 39 | 40 | def __new__(mcs, name: str, bases: Any, attrs: Dict[str, Any], **kwargs: Any): | |
| 40 | 41 | parents = [base for base in bases if isinstance(base, ModelMetaclass)] | |
| 41 | - if not parents: | ||
| 42 | - return super().__new__(mcs, name, bases, attrs, **kwargs) | ||
| 43 | 42 | ||
| 44 | 43 | model_metadata = metadata.ModelMetadata() | |
| 45 | 44 | for parent in parents: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,9 +13,6 @@ | |||
| 13 | 13 | # See the License for the specific language governing permissions and | |
| 14 | 14 | # limitations under the License. | |
| 15 | 15 | ||
| 16 | - # TODO(#93): Remove pytype disable below. | ||
| 17 | - # type: ignore | ||
| 18 | - | ||
| 19 | 16 | import logging | |
| 20 | 17 | import unittest | |
| 21 | 18 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments