Skip to content

Commit

Permalink
refactor(models): improve code formatting and structure
Browse files Browse the repository at this point in the history
  • Loading branch information
bendikrb committed Sep 16, 2024
1 parent 205e115 commit e2e5680
Show file tree
Hide file tree
Showing 9 changed files with 476 additions and 194 deletions.
4 changes: 3 additions & 1 deletion nrk_psapi/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""nrk-psapi models."""

from __future__ import annotations

from functools import cache
Expand Down Expand Up @@ -158,12 +159,13 @@


@cache
def get_operation(path: str) -> Operation | None: # pragma: no cover
def get_operation(path: str) -> Operation | None: # pragma: no cover
for operation in OPERATIONS.values():
if operation["path"] == path:
return operation
return None


__all__ = [
"Availability",
"AvailabilityDetailed",
Expand Down
Loading

0 comments on commit e2e5680

Please sign in to comment.