v440 2.0.0.dev97__tar.gz → 2.0.0.dev99__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.dev97/src/v440.egg-info → v440-2.0.0.dev99}/PKG-INFO +1 -1
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/pyproject.toml +1 -1
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/core/Version.py +7 -18
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/tests/test_testdata.py +1 -1
- {v440-2.0.0.dev97 → v440-2.0.0.dev99/src/v440.egg-info}/PKG-INFO +1 -1
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/LICENSE.txt +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/MANIFEST.in +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/README.rst +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/setup.cfg +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/__init__.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/_utils/BaseStringer.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/_utils/Cfg.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/_utils/ListStringer.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/_utils/Pattern.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/_utils/SlotStringer.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/_utils/__init__.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/_utils/cfg.toml +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/_utils/guarding.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/_utils/qualparse/Digest.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/_utils/qualparse/__init__.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/_utils/qualparse/devs.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/_utils/qualparse/posts.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/_utils/qualparse/pres.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/_utils/qualparse/segmenting.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/_utils/releaseparse/__init__.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/_utils/releaseparse/deleting.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/_utils/releaseparse/getting.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/_utils/releaseparse/listing.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/_utils/releaseparse/numerals.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/_utils/releaseparse/ranging.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/_utils/releaseparse/setting.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/core/Base.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/core/Local.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/core/Public.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/core/Qual.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/core/Release.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/core/VersionError.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/core/__init__.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/tests/__init__.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/tests/test_version.py +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440/tests/testdata.toml +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440.egg-info/SOURCES.txt +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440.egg-info/dependency_links.txt +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440.egg-info/requires.txt +0 -0
- {v440-2.0.0.dev97 → v440-2.0.0.dev99}/src/v440.egg-info/top_level.txt +0 -0
|
@@ -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 = 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)
|
|
@@ -76,11 +75,6 @@ class Version(SlotStringer):
|
|
|
76
75
|
"This property represents the local identifier."
|
|
77
76
|
return self._local
|
|
78
77
|
|
|
79
|
-
@local.setter
|
|
80
|
-
@guard
|
|
81
|
-
def local(self: Self, value: Any) -> None:
|
|
82
|
-
self.local._set(value)
|
|
83
|
-
|
|
84
78
|
def packaging(self: Self) -> packaging.version.Version:
|
|
85
79
|
"This method returns an eqivalent packaging.version.Version object."
|
|
86
80
|
return packaging.version.Version(str(self))
|
|
@@ -89,8 +83,3 @@ class Version(SlotStringer):
|
|
|
89
83
|
def public(self: Self) -> Self:
|
|
90
84
|
"This property represents the public identifier."
|
|
91
85
|
return self._public
|
|
92
|
-
|
|
93
|
-
@public.setter
|
|
94
|
-
@guard
|
|
95
|
-
def public(self: Self, value: Any) -> None:
|
|
96
|
-
self.public._set(value)
|
|
@@ -110,7 +110,7 @@ class TestVersionLocalGo(unittest.TestCase):
|
|
|
110
110
|
solution: Any = None,
|
|
111
111
|
) -> None:
|
|
112
112
|
version: Version = Version()
|
|
113
|
-
version.local = query
|
|
113
|
+
version.local.data = query
|
|
114
114
|
if attrname is not None:
|
|
115
115
|
attr: Any = getattr(version.local, attrname)
|
|
116
116
|
ans: Any = attr(*args, **dict(kwargs))
|
|
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
|
|
File without changes
|