Skip to content

Commit

Permalink
Specify DynamicAssociationProxy target type
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed Nov 20, 2023
1 parent 51bc49a commit ec1a34e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions funnel/models/account_membership.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,12 @@ class __Account:
)

owner_users = with_roles(
DynamicAssociationProxy('active_owner_memberships', 'member'), read={'all'}
DynamicAssociationProxy[Account]('active_owner_memberships', 'member'),
read={'all'},
)
admin_users = with_roles(
DynamicAssociationProxy('active_admin_memberships', 'member'), read={'all'}
DynamicAssociationProxy[Account]('active_admin_memberships', 'member'),
read={'all'},
)

# pylint: disable=invalid-unary-operand-type
Expand Down

0 comments on commit ec1a34e

Please sign in to comment.