Skip to content

Commit

Permalink
feat(lastfmxpy): Add unions types
Browse files Browse the repository at this point in the history
  • Loading branch information
pkeorley committed Jan 6, 2024
1 parent a3242f9 commit f0e2801
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions lastfmxpy/unions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
from typing import Union

from lastfmxpy.methods import (
Album,
Artist,
Auth,
Chart,
Geo,
Library,
Tag,
Track,
User
)
from lastfmxpy.params.base_classes import (
BaseAlbumParams,
BaseArtistParams,
BaseAuthParams,
BaseChartParams,
BaseGeoParams,
BaseLibraryParams,
BaseTagParams,
BaseTrackParams,
BaseUserParams
)

PostMethod = Union[
Album,
Artist,
Auth,
Chart,
Geo,
Library,
Tag,
Track,
User
]

PostParam = Union[
BaseAlbumParams,
BaseArtistParams,
BaseAuthParams,
BaseChartParams,
BaseGeoParams,
BaseLibraryParams,
BaseTagParams,
BaseTrackParams,
BaseUserParams
]

0 comments on commit f0e2801

Please sign in to comment.