Skip to content

Commit

Permalink
make scope optional, add extra literals for messed up alibaba responses
Browse files Browse the repository at this point in the history
  • Loading branch information
mikey0000 committed Oct 24, 2024
1 parent 7d840c4 commit ca6ac6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pymammotion/http/model/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ class LoginResponseUserInformation(DataClassORJSONMixin):
@dataclass
class LoginResponseData(DataClassORJSONMixin):
access_token: str
token_type: Literal["bearer"]
token_type: Literal["bearer", "Bearer"]
refresh_token: str
expires_in: int
scope: Literal["read"]
grant_type: Literal["password"]
scope: Optional[Literal["read", "Read"]]
grant_type: Literal["password", "Password"]
authorization_code: str
userInformation: LoginResponseUserInformation
jti: str
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[project]
name = "pymammotion"
version = "0.2.78"
version = "0.2.80"

[tool.poetry]
name = "pymammotion"
version = "0.2.78"
version = "0.2.80"
license = "GNU-3.0"
description = ""
readme = "README.md"
Expand Down Expand Up @@ -61,7 +61,7 @@ mypy = "^1.11.2"
autotyping = "^24.3.0"

[tool.bumpver]
current_version = "0.2.78"
current_version = "0.2.80"
version_pattern = "MAJOR.MINOR.PATCH"
commit_message = "Bump version {old_version} -> {new_version}"
commit = true
Expand Down

0 comments on commit ca6ac6b

Please sign in to comment.