@@ -3152,8 +3152,8 @@ class History(Base, HasTags, Dictifiable, UsesAnnotations, HasName, Serializable
31523152 active_datasets : Mapped [List ["HistoryDatasetAssociation" ]] = relationship (
31533153 primaryjoin = (
31543154 lambda : and_ (
3155- HistoryDatasetAssociation .history_id == History .id , # type: ignore[arg-type]
3156- not_ (HistoryDatasetAssociation .deleted ), # type: ignore[has-type]
3155+ HistoryDatasetAssociation .history_id == History .id ,
3156+ not_ (HistoryDatasetAssociation .deleted ),
31573157 )
31583158 ),
31593159 order_by = lambda : asc (HistoryDatasetAssociation .hid ), # type: ignore[has-type]
@@ -3165,7 +3165,7 @@ class History(Base, HasTags, Dictifiable, UsesAnnotations, HasName, Serializable
31653165 lambda : (
31663166 and_ (
31673167 HistoryDatasetCollectionAssociation .history_id == History .id ,
3168- not_ (HistoryDatasetCollectionAssociation .deleted ), # type: ignore[arg-type]
3168+ not_ (HistoryDatasetCollectionAssociation .deleted ),
31693169 )
31703170 )
31713171 ),
@@ -3175,8 +3175,8 @@ class History(Base, HasTags, Dictifiable, UsesAnnotations, HasName, Serializable
31753175 visible_datasets : Mapped [List ["HistoryDatasetAssociation" ]] = relationship (
31763176 primaryjoin = (
31773177 lambda : and_ (
3178- HistoryDatasetAssociation .history_id == History .id , # type: ignore[arg-type]
3179- not_ (HistoryDatasetAssociation .deleted ), # type: ignore[has-type]
3178+ HistoryDatasetAssociation .history_id == History .id ,
3179+ not_ (HistoryDatasetAssociation .deleted ),
31803180 HistoryDatasetAssociation .visible , # type: ignore[has-type]
31813181 )
31823182 ),
@@ -3187,7 +3187,7 @@ class History(Base, HasTags, Dictifiable, UsesAnnotations, HasName, Serializable
31873187 primaryjoin = (
31883188 lambda : and_ (
31893189 HistoryDatasetCollectionAssociation .history_id == History .id ,
3190- not_ (HistoryDatasetCollectionAssociation .deleted ), # type: ignore[arg-type]
3190+ not_ (HistoryDatasetCollectionAssociation .deleted ),
31913191 HistoryDatasetCollectionAssociation .visible , # type: ignore[arg-type]
31923192 )
31933193 ),
@@ -4110,27 +4110,27 @@ class Dataset(Base, StorableObject, Serializable):
41104110 active_history_associations : Mapped [List ["HistoryDatasetAssociation" ]] = relationship (
41114111 primaryjoin = (
41124112 lambda : and_ (
4113- Dataset .id == HistoryDatasetAssociation .dataset_id , # type: ignore[attr-defined]
4114- HistoryDatasetAssociation .deleted == false (), # type: ignore[has-type]
4115- HistoryDatasetAssociation .purged == false (), # type: ignore[arg-type]
4113+ Dataset .id == HistoryDatasetAssociation .dataset_id ,
4114+ HistoryDatasetAssociation .deleted == false (),
4115+ HistoryDatasetAssociation .purged == false (),
41164116 )
41174117 ),
41184118 viewonly = True ,
41194119 )
41204120 purged_history_associations : Mapped [List ["HistoryDatasetAssociation" ]] = relationship (
41214121 primaryjoin = (
41224122 lambda : and_ (
4123- Dataset .id == HistoryDatasetAssociation .dataset_id , # type: ignore[attr-defined]
4124- HistoryDatasetAssociation .purged == true (), # type: ignore[arg-type]
4123+ Dataset .id == HistoryDatasetAssociation .dataset_id ,
4124+ HistoryDatasetAssociation .purged == true (),
41254125 )
41264126 ),
41274127 viewonly = True ,
41284128 )
41294129 active_library_associations : Mapped [List ["LibraryDatasetDatasetAssociation" ]] = relationship (
41304130 primaryjoin = (
41314131 lambda : and_ (
4132- Dataset .id == LibraryDatasetDatasetAssociation .dataset_id , # type: ignore[attr-defined]
4133- LibraryDatasetDatasetAssociation .deleted == false (), # type: ignore[has-type]
4132+ Dataset .id == LibraryDatasetDatasetAssociation .dataset_id ,
4133+ LibraryDatasetDatasetAssociation .deleted == false (),
41344134 )
41354135 ),
41364136 viewonly = True ,
@@ -4596,11 +4596,13 @@ def datatype_for_extension(extension, datatypes_registry=None) -> "Data":
45964596class DatasetInstance (RepresentById , UsesCreateAndUpdateTime , _HasTable ):
45974597 """A base class for all 'dataset instances', HDAs, LDDAs, etc"""
45984598
4599+ purged : Mapped [Optional [bool ]]
4600+ deleted : Mapped [bool ]
4601+ dataset_id : Mapped [Optional [int ]]
4602+ _state : Mapped [Optional [str ]]
45994603 states = Dataset .states
4600- _state : Optional [str ]
46014604 conversion_messages = Dataset .conversion_messages
46024605 permitted_actions = Dataset .permitted_actions
4603- purged : bool
46044606 creating_job_associations : List [Union [JobToOutputDatasetCollectionAssociation , JobToOutputDatasetAssociation ]]
46054607 copied_from_history_dataset_association : Optional ["HistoryDatasetAssociation" ]
46064608 copied_from_library_dataset_dataset_association : Optional ["LibraryDatasetDatasetAssociation" ]
@@ -5055,9 +5057,7 @@ def find_conversion_destination(
50555057 self , accepted_formats : List [str ], ** kwd
50565058 ) -> Tuple [bool , Optional [str ], Optional ["DatasetInstance" ]]:
50575059 """Returns ( target_ext, existing converted dataset )"""
5058- return self .datatype .find_conversion_destination (
5059- self , accepted_formats , _get_datatypes_registry (), ** kwd # type:ignore[arg-type]
5060- )
5060+ return self .datatype .find_conversion_destination (self , accepted_formats , _get_datatypes_registry (), ** kwd )
50615061
50625062 def add_validation_error (self , validation_error ):
50635063 self .validation_errors .append (validation_error )
@@ -5260,7 +5260,7 @@ class HistoryDatasetAssociation(DatasetInstance, HasTags, Dictifiable, UsesAnnot
52605260 Resource class that creates a relation between a dataset and a user history.
52615261 """
52625262
5263- history_id : Optional [int ]
5263+ history_id : Mapped [ Optional [int ] ]
52645264
52655265 def __init__ (
52665266 self ,
@@ -6947,7 +6947,7 @@ class HistoryDatasetCollectionAssociation(
69476947 name : Mapped [Optional [str ]] = mapped_column (TrimmedString (255 ))
69486948 hid : Mapped [Optional [int ]]
69496949 visible : Mapped [Optional [bool ]]
6950- deleted : Mapped [Optional [ bool ] ] = mapped_column (default = False )
6950+ deleted : Mapped [bool ] = mapped_column (default = False )
69516951 copied_from_history_dataset_collection_association_id : Mapped [Optional [int ]] = mapped_column (
69526952 ForeignKey ("history_dataset_collection_association.id" )
69536953 )
0 commit comments