Habiticalib 0.3.4__py3-none-any.whl → 0.3.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
habiticalib/const.py CHANGED
@@ -1,6 +1,6 @@
1
1
  """Constants for Habiticalib."""
2
2
 
3
- __version__ = "0.3.4"
3
+ __version__ = "0.3.5"
4
4
 
5
5
  DEFAULT_URL = "https://habitica.com/"
6
6
  ASSETS_URL = "https://habitica-assets.s3.amazonaws.com/mobileApp/images/"
habiticalib/types.py CHANGED
@@ -11,6 +11,7 @@ from typing import Any, NotRequired, TypedDict
11
11
  from uuid import UUID
12
12
 
13
13
  from mashumaro import field_options
14
+ from mashumaro.config import BaseConfig
14
15
  from mashumaro.mixins.orjson import DataClassORJSONMixin
15
16
 
16
17
 
@@ -907,9 +908,14 @@ class Task(TypedDict("Task", {"type": NotRequired[TaskType]}), total=True):
907
908
 
908
909
 
909
910
  @dataclass(kw_only=True)
910
- class TaskData:
911
+ class TaskData(DataClassORJSONMixin):
911
912
  """Task data."""
912
913
 
914
+ class Config(BaseConfig):
915
+ """Configuration for TaskData."""
916
+
917
+ serialize_by_alias = True
918
+
913
919
  challenge: Challenge = field(default_factory=Challenge)
914
920
  group: GroupTask = field(default_factory=GroupTask)
915
921
  Type: TaskType | None = field(default=None, metadata=field_options(alias="type"))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Habiticalib
3
- Version: 0.3.4
3
+ Version: 0.3.5
4
4
  Summary: Asynchronous Python client library for the Habitica API
5
5
  Project-URL: Documentation, https://tr4nt0r.github.io/habiticalib/
6
6
  Project-URL: Source, https://github.com/tr4nt0r/habiticalib
@@ -1,12 +1,12 @@
1
1
  habiticalib/__init__.py,sha256=YDYsEGMIxZftYU9YkNC0tyvJrkxn2lXV8WcVQoOXyvA,2415
2
- habiticalib/const.py,sha256=HP5xKY09-GES72btrXbI0XUFSrCBCqXdn2JPwfOR0vs,2308
2
+ habiticalib/const.py,sha256=QvfUFP2ql8iTm2-36g-NC4GSWlYsWciYVWQ0uhMsABk,2308
3
3
  habiticalib/exceptions.py,sha256=oVFCGbHkVn0UpIKIPZPzXfvzs9US4R05ebdEn6cOpqM,1350
4
4
  habiticalib/ha.py,sha256=rSzrs7ixLJH3ZtOFlcuKV2t1ZndT0VpuPhDsGqorkOs,20757
5
5
  habiticalib/helpers.py,sha256=IRZLYWkDVLI0iVBgBMmvZ6L83KCUl-CnzGhUR_tP6Fg,4576
6
6
  habiticalib/lib.py,sha256=YxnlRwCsSlmrdvVu06TKRa6SgnQj2fh2LY8JM7HRqq8,73610
7
7
  habiticalib/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- habiticalib/types.py,sha256=GS3GOlSY31SrJKcuci__drYewhJpi4jfPmAHapPijrg,43359
9
- habiticalib-0.3.4.dist-info/METADATA,sha256=9DSGPmVo5IqO1hR1Z47oPP1xMiEsiCZpdMT3AGvs448,4207
10
- habiticalib-0.3.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
11
- habiticalib-0.3.4.dist-info/licenses/LICENSE,sha256=oIinIOSJ49l1iVIRI3XGXFWt6SF7a83kEFBAY8ORwNI,1084
12
- habiticalib-0.3.4.dist-info/RECORD,,
8
+ habiticalib/types.py,sha256=svPW9SHUNTDp8zuXahhFH__3ioy4O8RHiUlkzdd0_dk,43529
9
+ habiticalib-0.3.5.dist-info/METADATA,sha256=E5Rbx47jsOa6T4oSBxosipxDiO0n4V7Ey0AZL2RCzvM,4207
10
+ habiticalib-0.3.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
11
+ habiticalib-0.3.5.dist-info/licenses/LICENSE,sha256=oIinIOSJ49l1iVIRI3XGXFWt6SF7a83kEFBAY8ORwNI,1084
12
+ habiticalib-0.3.5.dist-info/RECORD,,