Skip to content

Commit e5f1123

Browse files
committed
Remove default suffix in GenericModel class
In some combinations of Python/Celery/Pydantic versions this would lead to: _pickle.PicklingError: Can't pickle <class 'galaxy.schema.notifications.NotificationRecipientsIncoming'>: attribute lookup NotificationRecipientsIncoming on galaxy.schema.notifications failed This is because the NotificationRecipientsIncoming dynamic model is not yet available in the module. Removing the `Incoming` prefix will match the existing NotificationRecipients alias which is explicitly defined in the notifications module.
1 parent f382305 commit e5f1123

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/galaxy/schema/generics.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __get_pydantic_core_schema__(cls, *args, **kwargs):
3333

3434
@classmethod
3535
def __determine_suffix__(cls, params: Tuple[Type[Any], ...]) -> str:
36-
suffix = "Incoming"
36+
suffix = ""
3737
if params[0] is EncodedDatabaseIdField:
3838
suffix = "Response"
3939
elif params[0] is DecodedDatabaseIdField:

0 commit comments

Comments
 (0)