Skip to content

Commit

Permalink
Ignore typing error (see note)
Browse files Browse the repository at this point in the history
RepositoryMetadata is mapped imperatively, so until the mapper creates
attributes based on Column definitions, the attribute does not exist on
the class. This class is mapped imperatively due to the complications
triggered by mapping the "metadata" attribute.
  • Loading branch information
jdavcs committed Oct 12, 2023
1 parent b0684fa commit 3c52785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tool_shed/metadata/repository_metadata_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ def get_repository_metadata(session, repository_id):
stmt = (
select(RepositoryMetadata)
.where(RepositoryMetadata.repository_id == repository_id)
.order_by(RepositoryMetadata.changeset_revision, RepositoryMetadata.update_time.desc())
.order_by(RepositoryMetadata.changeset_revision, RepositoryMetadata.update_time.desc()) # type: ignore[attr-defined] # mapped attribute
)
return session.scalars(stmt)

Expand Down

0 comments on commit 3c52785

Please sign in to comment.