refactor: improve code readability by formatting arguments across multiple files
Test / test (push) Successful in 15s

This commit is contained in:
Artem Kashaev
2025-12-01 16:25:30 +05:00
parent dc0046c730
commit 1dd7c2f2b8
22 changed files with 161 additions and 49 deletions
+8 -2
View File
@@ -56,7 +56,10 @@ class OrganizationService:
self._repository = repository
async def get_context(
self, *, user_id: int, organization_id: int | None,
self,
*,
user_id: int,
organization_id: int | None,
) -> OrganizationContext:
"""Resolve request context ensuring the user belongs to the given organization."""
@@ -70,7 +73,10 @@ class OrganizationService:
return OrganizationContext(organization=membership.organization, membership=membership)
def ensure_entity_in_context(
self, *, entity_organization_id: int, context: OrganizationContext,
self,
*,
entity_organization_id: int,
context: OrganizationContext,
) -> None:
"""Make sure a resource belongs to the current organization."""