qcanvas 1.0.3.post3__py3-none-any.whl → 1.0.3.post5__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.

Potentially problematic release.


This version of qcanvas might be problematic. Click here for more details.

qcanvas/run.py CHANGED
@@ -25,5 +25,5 @@ def main():
25
25
  qcanvas.app_start.launch()
26
26
 
27
27
 
28
- if __name__ == '__main__':
28
+ if __name__ == "__main__":
29
29
  main()
@@ -5,8 +5,10 @@ from qtpy.QtCore import QSettings
5
5
 
6
6
  _logger = logging.getLogger(__name__)
7
7
 
8
+ T = TypeVar("T")
8
9
 
9
- class MappedSetting[T]:
10
+
11
+ class MappedSetting(Generic[T]):
10
12
  """
11
13
  Acts as a proxy for a named value in a QSettings object.
12
14
  Stores the value in memory when initialised and updates it accordingly, to protect it from changes on disk.
@@ -46,7 +48,7 @@ class BoolSetting(MappedSetting[bool]):
46
48
  def __init__(self, default: bool = False):
47
49
  super().__init__(default)
48
50
 
49
- @override
51
+ # @override
50
52
  def _read(self) -> bool:
51
53
  try:
52
54
  # noinspection PyTypeChecker
@@ -55,7 +57,7 @@ class BoolSetting(MappedSetting[bool]):
55
57
  except:
56
58
  return self.default
57
59
 
58
- @override
60
+ # @override
59
61
  def _write(self, value: object) -> None:
60
62
  if not isinstance(value, bool):
61
63
  raise TypeError()
@@ -1,11 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qcanvas
3
- Version: 1.0.3.post3
3
+ Version: 1.0.3.post5
4
4
  Summary: QCanvas is a desktop client for Canvas LMS.
5
5
  Author: QCanvas
6
6
  Author-email: QCanvas@noreply.codeberg.org
7
- Requires-Python: >=3.12,<3.13
7
+ Requires-Python: >=3.11,<3.13
8
8
  Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.11
9
10
  Classifier: Programming Language :: Python :: 3.12
10
11
  Requires-Dist: aiosqlite (>=0.20.0,<0.21.0)
11
12
  Requires-Dist: asynctaskpool (>=0.2.1,<0.3.0)
@@ -12,7 +12,7 @@ qcanvas/icons/icons.qrc,sha256=czwaoP0TNXGoH91cstRbdhvKnfyLlmAp-VmaZoBk0YY,280
12
12
  qcanvas/icons/main_icon.svg,sha256=st2sfA8HIETmoacJ2Oq84iJzfnNHH-T03ijB-J419_s,16104
13
13
  qcanvas/icons/rc_icons.py,sha256=Ankeu0oWJk-1qLGVLxmiK5Kt1LVNyDmpR8jJZzOG5gQ,18194
14
14
  qcanvas/icons/sync.svg,sha256=J-7_KnFbQL3uh-RrTy0_wSJUVW4Cc6ZSTacld6ULv1w,2829
15
- qcanvas/run.py,sha256=V_ni8SWwh4_GrymX09Yfmd8Pwpz30ohIpDQ6Nk6rQPw,538
15
+ qcanvas/run.py,sha256=66DwIB4lrCTkI9vR3fNSqZGmpALKARO0yuXN2wIrN9w,538
16
16
  qcanvas/ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  qcanvas/ui/course_viewer/__init__.py,sha256=XkoFnh4ULw3_i-GDsOlueEWido0PkoDcN9_EX6-nkXY,76
18
18
  qcanvas/ui/course_viewer/content_tree.py,sha256=-W9-pw76j2SHWoFnhLk7DhQxhge_Kh0HHxHYDYsyBeQ,3605
@@ -54,11 +54,11 @@ qcanvas/util/logs.py,sha256=VZKFITiW2WR2POEFVv5GRpEXic23Pzjehry-vH3g3Gk,138
54
54
  qcanvas/util/paths.py,sha256=HGIOqplZykmGBNaUaNFIik_Tj4jLAi4n-TZbvUIivDE,1035
55
55
  qcanvas/util/settings/__init__.py,sha256=ivc8bczhQdEJsWse6fc81Xyz0i2YX57pL4UubM3NJfw,228
56
56
  qcanvas/util/settings/_client_settings.py,sha256=HxGH9eOCdBj8wYboGhzNX0LFw_bmzF-Vwo44y1W0EqY,1036
57
- qcanvas/util/settings/_mapped_setting.py,sha256=1zQAfXxWB9yUtWCBObnOZl7EQ22bS-4u2yGGGSdhKJo,1792
57
+ qcanvas/util/settings/_mapped_setting.py,sha256=Z6635FfDll9cCLfSkVg-unsDLvUWuKT5MmxJEiUkd2k,1823
58
58
  qcanvas/util/settings/_ui_settings.py,sha256=X1AFVIJzck0S3YdEWN6VMws4k9sWquM1t5hwMYOsfTw,927
59
59
  qcanvas/util/ui_tools.py,sha256=bSM1xrmZPn847YEbXAC9VIAv--8hMLMWrsEMWGA5p3E,916
60
60
  qcanvas/util/url_checker.py,sha256=03jqnQ1_GOlCJyRHrlMbSQE9QsHrVNsg0kFsA8oKP60,361
61
- qcanvas-1.0.3.post3.dist-info/METADATA,sha256=mJD5EOo9TNE--6jCXMLpbkYAITIlpbQnGVUI0A2oSQ8,1605
62
- qcanvas-1.0.3.post3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
63
- qcanvas-1.0.3.post3.dist-info/entry_points.txt,sha256=46VbnhQ9w2CYdfhYcPfWgjXYHjsKshu0asQ1B_sAMac,44
64
- qcanvas-1.0.3.post3.dist-info/RECORD,,
61
+ qcanvas-1.0.3.post5.dist-info/METADATA,sha256=Q_0HmySahaUNQoSPdjajvzG-gJ3ElzXOq-QYEGclUsg,1656
62
+ qcanvas-1.0.3.post5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
63
+ qcanvas-1.0.3.post5.dist-info/entry_points.txt,sha256=46VbnhQ9w2CYdfhYcPfWgjXYHjsKshu0asQ1B_sAMac,44
64
+ qcanvas-1.0.3.post5.dist-info/RECORD,,