v440 2.0.0.dev98__tar.gz → 2.0.0.dev100__tar.gz
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.
- {v440-2.0.0.dev98/src/v440.egg-info → v440-2.0.0.dev100}/PKG-INFO +1 -1
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/pyproject.toml +1 -1
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/core/Base.py +5 -6
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/core/Local.py +2 -1
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/core/Version.py +7 -13
- {v440-2.0.0.dev98 → v440-2.0.0.dev100/src/v440.egg-info}/PKG-INFO +1 -1
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/LICENSE.txt +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/MANIFEST.in +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/README.rst +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/setup.cfg +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/__init__.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/_utils/BaseStringer.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/_utils/Cfg.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/_utils/ListStringer.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/_utils/Pattern.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/_utils/SlotStringer.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/_utils/__init__.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/_utils/cfg.toml +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/_utils/guarding.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/_utils/qualparse/Digest.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/_utils/qualparse/__init__.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/_utils/qualparse/devs.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/_utils/qualparse/posts.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/_utils/qualparse/pres.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/_utils/qualparse/segmenting.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/_utils/releaseparse/__init__.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/_utils/releaseparse/deleting.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/_utils/releaseparse/getting.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/_utils/releaseparse/listing.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/_utils/releaseparse/numerals.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/_utils/releaseparse/ranging.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/_utils/releaseparse/setting.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/core/Public.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/core/Qual.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/core/Release.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/core/VersionError.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/core/__init__.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/tests/__init__.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/tests/test_testdata.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/tests/test_version.py +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440/tests/testdata.toml +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440.egg-info/SOURCES.txt +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440.egg-info/dependency_links.txt +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440.egg-info/requires.txt +0 -0
- {v440-2.0.0.dev98 → v440-2.0.0.dev100}/src/v440.egg-info/top_level.txt +0 -0
|
@@ -21,6 +21,7 @@ class Base(SlotStringer):
|
|
|
21
21
|
epoch: int
|
|
22
22
|
release: Release
|
|
23
23
|
|
|
24
|
+
@setdoc.basic
|
|
24
25
|
def __bool__(self: Self) -> bool:
|
|
25
26
|
return bool(self.epoch or self.release)
|
|
26
27
|
|
|
@@ -36,7 +37,8 @@ class Base(SlotStringer):
|
|
|
36
37
|
@__init__.overload(True)
|
|
37
38
|
@setdoc.basic
|
|
38
39
|
def __init__(self: Self, string: Any) -> None:
|
|
39
|
-
self.
|
|
40
|
+
self._epoch = 0
|
|
41
|
+
self._release = Release()
|
|
40
42
|
self.string = string
|
|
41
43
|
|
|
42
44
|
@__init__.overload(False)
|
|
@@ -46,13 +48,10 @@ class Base(SlotStringer):
|
|
|
46
48
|
epoch: Any = 0,
|
|
47
49
|
release: Any = "0",
|
|
48
50
|
) -> None:
|
|
49
|
-
self._init_setup()
|
|
50
|
-
self.epoch = epoch
|
|
51
|
-
self.release.string = release
|
|
52
|
-
|
|
53
|
-
def _init_setup(self: Self) -> None:
|
|
54
51
|
self._epoch = 0
|
|
55
52
|
self._release = Release()
|
|
53
|
+
self.epoch = epoch
|
|
54
|
+
self.release.string = release
|
|
56
55
|
|
|
57
56
|
def _format(self: Self, format_spec: str) -> str:
|
|
58
57
|
ans: str = ""
|
|
@@ -21,13 +21,14 @@ class Version(SlotStringer):
|
|
|
21
21
|
local: Local
|
|
22
22
|
public: Public
|
|
23
23
|
|
|
24
|
+
@setdoc.basic
|
|
24
25
|
def __bool__(self: Self) -> bool:
|
|
25
26
|
return bool(self.local or self.public)
|
|
26
27
|
|
|
27
28
|
@Overloadable
|
|
28
29
|
@setdoc.basic
|
|
29
30
|
def __init__(self: Self, *args: Any, **kwargs: Any) -> bool:
|
|
30
|
-
if
|
|
31
|
+
if "string" in kwargs.keys():
|
|
31
32
|
return True
|
|
32
33
|
if len(args) == 1 and len(kwargs) == 0:
|
|
33
34
|
return True
|
|
@@ -35,8 +36,9 @@ class Version(SlotStringer):
|
|
|
35
36
|
|
|
36
37
|
@__init__.overload(True)
|
|
37
38
|
@setdoc.basic
|
|
38
|
-
def __init__(self: Self, string: Any) -> None:
|
|
39
|
-
self.
|
|
39
|
+
def __init__(self: Self, string: Any = "0") -> None:
|
|
40
|
+
self._public = Public()
|
|
41
|
+
self._local = Local()
|
|
40
42
|
self.string = string
|
|
41
43
|
|
|
42
44
|
@__init__.overload(False)
|
|
@@ -46,13 +48,10 @@ class Version(SlotStringer):
|
|
|
46
48
|
public: Any = "0",
|
|
47
49
|
local: Any = "",
|
|
48
50
|
) -> None:
|
|
49
|
-
self._init_setup()
|
|
50
|
-
self.public = public
|
|
51
|
-
self.local.string = local
|
|
52
|
-
|
|
53
|
-
def _init_setup(self: Self) -> None:
|
|
54
51
|
self._public = Public()
|
|
55
52
|
self._local = Local()
|
|
53
|
+
self.public.string = public
|
|
54
|
+
self.local.string = local
|
|
56
55
|
|
|
57
56
|
def _format(self: Self, format_spec: str) -> str:
|
|
58
57
|
ans: str = format(self.public, format_spec)
|
|
@@ -84,8 +83,3 @@ class Version(SlotStringer):
|
|
|
84
83
|
def public(self: Self) -> Self:
|
|
85
84
|
"This property represents the public identifier."
|
|
86
85
|
return self._public
|
|
87
|
-
|
|
88
|
-
@public.setter
|
|
89
|
-
@guard
|
|
90
|
-
def public(self: Self, value: Any) -> None:
|
|
91
|
-
self.public._set(value)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|