Skip to content

Commit

Permalink
Merge branch '2018-bug-pagination-breaks-serialization-of-sql-alchemy…
Browse files Browse the repository at this point in the history
…-models' of github.com:starlite-api/starlite into 2018-bug-pagination-breaks-serialization-of-sql-alchemy-models
  • Loading branch information
Goldziher committed Aug 3, 2023
2 parents 0ae9ee7 + 0b137b9 commit 7b6c274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litestar/dto/base_dto.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def __class_getitem__(cls, annotation: Any) -> type[Self]:
raise InvalidAnnotationException("Unions are currently not supported as type argument to DTOs.")

if field_definition.is_forward_ref:
raise InvalidAnnotationException("ForwardRefs are not supported as type argument to DTO")
raise InvalidAnnotationException("Forward references are not supported as type argument to DTO")

# if a configuration is not provided, and the type narrowing is a type var, we don't want to create a subclass
config = cls.get_dto_config_from_annotated_type(field_definition)
Expand Down

0 comments on commit 7b6c274

Please sign in to comment.