@@ -263,12 +263,10 @@ def _amend_abstract_attributes(cls, obj: object, dct: Dict[str, object]) -> None
263263 if 'embeddedDataSpecifications' in dct :
264264 for dspec in _get_ts (dct , 'embeddedDataSpecifications' , list ):
265265 obj .embedded_data_specifications .append (
266- # TODO: remove the following type: ignore comment when mypy supports abstract types for Type[T]
267- # see https://github.com/python/mypy/issues/5374
268266 model .EmbeddedDataSpecification (
269267 data_specification = cls ._construct_reference (_get_ts (dspec , 'dataSpecification' , dict )),
270268 data_specification_content = _get_ts (dspec , 'dataSpecificationContent' ,
271- model .DataSpecificationContent ) # type: ignore
269+ model .DataSpecificationContent )
272270 )
273271 )
274272 if isinstance (obj , model .HasExtension ) and not cls .stripped :
@@ -370,9 +368,7 @@ def _construct_operation_variable(cls, dct: Dict[str, object]) -> model.Submodel
370368 Since we don't implement ``OperationVariable``, this constructor discards the wrapping ``OperationVariable``
371369 object and just returns the contained :class:`~basyx.aas.model.submodel.SubmodelElement`.
372370 """
373- # TODO: remove the following type: ignore comments when mypy supports abstract types for Type[T]
374- # see https://github.com/python/mypy/issues/5374
375- return _get_ts (dct , 'value' , model .SubmodelElement ) # type: ignore
371+ return _get_ts (dct , 'value' , model .SubmodelElement )
376372
377373 @classmethod
378374 def _construct_lang_string_set (cls , lst : List [Dict [str , object ]], object_class : Type [LSS ]) -> LSS :
@@ -568,11 +564,9 @@ def _construct_capability(cls, dct: Dict[str, object], object_class=model.Capabi
568564 @classmethod
569565 def _construct_basic_event_element (cls , dct : Dict [str , object ], object_class = model .BasicEventElement ) \
570566 -> model .BasicEventElement :
571- # TODO: remove the following type: ignore comments when mypy supports abstract types for Type[T]
572- # see https://github.com/python/mypy/issues/5374
573567 ret = object_class (id_short = None ,
574568 observed = cls ._construct_model_reference (_get_ts (dct , 'observed' , dict ),
575- model .Referable ), # type: ignore
569+ model .Referable ),
576570 direction = DIRECTION_INVERSE [_get_ts (dct , "direction" , str )],
577571 state = STATE_OF_EVENT_INVERSE [_get_ts (dct , "state" , str )])
578572 cls ._amend_abstract_attributes (ret , dct )
@@ -613,8 +607,6 @@ def _construct_operation(cls, dct: Dict[str, object], object_class=model.Operati
613607 @classmethod
614608 def _construct_relationship_element (
615609 cls , dct : Dict [str , object ], object_class = model .RelationshipElement ) -> model .RelationshipElement :
616- # TODO: remove the following type: ignore comments when mypy supports abstract types for Type[T]
617- # see https://github.com/python/mypy/issues/5374
618610 ret = object_class (id_short = None ,
619611 first = cls ._construct_reference (_get_ts (dct , 'first' , dict )),
620612 second = cls ._construct_reference (_get_ts (dct , 'second' , dict )))
@@ -625,8 +617,6 @@ def _construct_relationship_element(
625617 def _construct_annotated_relationship_element (
626618 cls , dct : Dict [str , object ], object_class = model .AnnotatedRelationshipElement )\
627619 -> model .AnnotatedRelationshipElement :
628- # TODO: remove the following type: ignore comments when mypy supports abstract types for Type[T]
629- # see https://github.com/python/mypy/issues/5374
630620 ret = object_class (
631621 id_short = None ,
632622 first = cls ._construct_reference (_get_ts (dct , 'first' , dict )),
0 commit comments