labmate 0.10.3__py3-none-any.whl → 0.10.4__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.
- labmate/__config__.py +1 -1
- labmate/parsing/parsed_value.py +21 -5
- labmate/utils/lint.py +2 -1
- {labmate-0.10.3.dist-info → labmate-0.10.4.dist-info}/METADATA +1 -1
- {labmate-0.10.3.dist-info → labmate-0.10.4.dist-info}/RECORD +8 -8
- {labmate-0.10.3.dist-info → labmate-0.10.4.dist-info}/LICENCE +0 -0
- {labmate-0.10.3.dist-info → labmate-0.10.4.dist-info}/WHEEL +0 -0
- {labmate-0.10.3.dist-info → labmate-0.10.4.dist-info}/top_level.txt +0 -0
labmate/__config__.py
CHANGED
labmate/parsing/parsed_value.py
CHANGED
|
@@ -115,45 +115,61 @@ class ParsedValue:
|
|
|
115
115
|
other = self._convert_other(other)
|
|
116
116
|
return self.value / other # type: ignore
|
|
117
117
|
|
|
118
|
+
def __rtruediv__(self, other):
|
|
119
|
+
other = self._convert_other(other)
|
|
120
|
+
return other / self.value # type: ignore
|
|
121
|
+
|
|
118
122
|
def __floordiv__(self, other):
|
|
119
123
|
other = self._convert_other(other)
|
|
120
124
|
return self.value // other # type: ignore
|
|
121
125
|
|
|
126
|
+
def __rfloordiv__(self, other):
|
|
127
|
+
other = self._convert_other(other)
|
|
128
|
+
return other // self.value # type: ignore
|
|
129
|
+
|
|
122
130
|
def __mod__(self, other):
|
|
123
131
|
other = self._convert_other(other)
|
|
124
132
|
return self.value % other
|
|
125
133
|
|
|
134
|
+
def __rmod__(self, other):
|
|
135
|
+
other = self._convert_other(other)
|
|
136
|
+
return other % self.value
|
|
137
|
+
|
|
126
138
|
def __pow__(self, other):
|
|
127
139
|
other = self._convert_other(other)
|
|
128
140
|
return self.value**other
|
|
129
141
|
|
|
142
|
+
def __rpow__(self, other):
|
|
143
|
+
other = self._convert_other(other)
|
|
144
|
+
return other**self.value
|
|
145
|
+
|
|
130
146
|
def __lt__(self, other):
|
|
131
147
|
other = self._convert_other(other)
|
|
132
148
|
if isinstance(self.value, complex):
|
|
133
149
|
raise TypeError("Cannot compare complex values")
|
|
134
|
-
return self.value
|
|
150
|
+
return self.value < other
|
|
135
151
|
|
|
136
152
|
def __gt__(self, other):
|
|
137
153
|
other = self._convert_other(other)
|
|
138
154
|
if isinstance(self.value, complex):
|
|
139
155
|
raise TypeError("Cannot compare complex values")
|
|
140
|
-
return self.value
|
|
156
|
+
return self.value > other
|
|
141
157
|
|
|
142
158
|
def __le__(self, other):
|
|
143
159
|
other = self._convert_other(other)
|
|
144
160
|
if isinstance(self.value, complex):
|
|
145
161
|
raise TypeError("Cannot compare complex values")
|
|
146
|
-
return self.value
|
|
162
|
+
return self.value <= other
|
|
147
163
|
|
|
148
164
|
def __ge__(self, other):
|
|
149
165
|
other = self._convert_other(other)
|
|
150
166
|
if isinstance(self.value, complex):
|
|
151
167
|
raise TypeError("Cannot compare complex values")
|
|
152
|
-
return self.value
|
|
168
|
+
return self.value >= other
|
|
153
169
|
|
|
154
170
|
def __ne__(self, other):
|
|
155
171
|
other = self._convert_other(other)
|
|
156
|
-
return self.value
|
|
172
|
+
return self.value != other
|
|
157
173
|
|
|
158
174
|
@property
|
|
159
175
|
def is_complex(self):
|
labmate/utils/lint.py
CHANGED
|
@@ -137,6 +137,7 @@ class NameVisitor(ast.NodeVisitor):
|
|
|
137
137
|
|
|
138
138
|
if isinstance(node, ast.FunctionDef):
|
|
139
139
|
variables = get_all_args_from_def(node.args)
|
|
140
|
+
self.local_vars.add(node.name)
|
|
140
141
|
node.dont_parse = variables # type: ignore
|
|
141
142
|
|
|
142
143
|
if isinstance(node, ast.Lambda):
|
|
@@ -241,7 +242,7 @@ def find_variables_from_code(
|
|
|
241
242
|
set(),
|
|
242
243
|
[
|
|
243
244
|
"Syntax error is found during linting. Probably because #noqa is used. "
|
|
244
|
-
"#noqa removes line from the
|
|
245
|
+
"#noqa removes line from the analysis, so don't use it with line breaks.\n"
|
|
245
246
|
f"Error at line {exception.lineno} in {exception.text}"
|
|
246
247
|
],
|
|
247
248
|
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
labmate/__config__.py,sha256=
|
|
1
|
+
labmate/__config__.py,sha256=hzFUnYJXx9HqUGa1RXeAC5Jv6jEpLTjzm6R7rJ7HAfg,72
|
|
2
2
|
labmate/__init__.py,sha256=aHQiPLldCXIJqz6wwcfyFU9sGLofUR3W5sXBIRzK2n4,182
|
|
3
3
|
labmate/acquisition/__init__.py,sha256=8q3dy18lL32A9y_Du8GggpLgJqDMFcFKddHrySMavrM,269
|
|
4
4
|
labmate/acquisition/acquisition_data.py,sha256=UcpUaT1SkmnqGMyzP8cgH2JjLRtWZZdTk5S0JHf-v9c,6681
|
|
@@ -23,18 +23,18 @@ labmate/display/platform_utils/windows_utils.py,sha256=4Z_avuJIZ_KoXkuRZOH2667t2
|
|
|
23
23
|
labmate/logger/__init__.py,sha256=Ks4bUNO_rNTFsw0Sh3JAfK1tZq8mqHoqXHP89xpexp0,2177
|
|
24
24
|
labmate/parsing/__init__.py,sha256=AHNB502jlm6PGd49_PJjvSxt97fxJeXnIfXYh8HV5x0,1312
|
|
25
25
|
labmate/parsing/brackets_score.py,sha256=zzup7z6o57YUGeMr5FOSTo3nz9Z62s2omxqFV3M9MmI,988
|
|
26
|
-
labmate/parsing/parsed_value.py,sha256=
|
|
26
|
+
labmate/parsing/parsed_value.py,sha256=KZ2ratig5iOxcgjBaxEQFcK-MHHrX9pSOMJT20FsDTI,5788
|
|
27
27
|
labmate/parsing/saving.py,sha256=pwCdYI9shrpKyFceRPNbPcbEfJbNQ7Xj0AMsDOr5qLA,2548
|
|
28
28
|
labmate/utils/__init__.py,sha256=g9LSaSVDFC4Uo7hbdd66aT7QewuXNRheZ8PZlMrcsNw,104
|
|
29
29
|
labmate/utils/async_utils.py,sha256=mSfmpF7I3M5KePkPtoS-OcuoCkFDHPKjf-RVF0P3R48,118
|
|
30
30
|
labmate/utils/autoreload.py,sha256=wKi1GgWyRu1h101OguVRpO3zQXZ8qsFj-K-1P8PKuq8,305
|
|
31
31
|
labmate/utils/errors.py,sha256=ly7-JQStTKmPiMuT0w3eXFw1O8-1kpTsqZT2jebpJ-I,140
|
|
32
32
|
labmate/utils/file_read.py,sha256=2SqCwjkNeYD_AAt0lPZKZyEKGDHPg2JQ08GOozHvhkc,3417
|
|
33
|
-
labmate/utils/lint.py,sha256=
|
|
33
|
+
labmate/utils/lint.py,sha256=Rp6Rsga3hNe0WYIx8tA1D7pF0Gt-QTuyL9AFM4WXCzs,9355
|
|
34
34
|
labmate/utils/random_utils.py,sha256=ZA3gK9P-eTcd_a3BTS_ZeJI5A0GM_GXL7X3yUqnPTO4,690
|
|
35
35
|
labmate/utils/title_parsing.py,sha256=5csdqiD6w6pzyqRon38V2WeGA00CifSrMMtoWZmk0Ok,2644
|
|
36
|
-
labmate-0.10.
|
|
37
|
-
labmate-0.10.
|
|
38
|
-
labmate-0.10.
|
|
39
|
-
labmate-0.10.
|
|
40
|
-
labmate-0.10.
|
|
36
|
+
labmate-0.10.4.dist-info/LICENCE,sha256=J9XIxdJExlWYZuxhhKtk4oYILvUz8-JM0y_leRQCKUE,7488
|
|
37
|
+
labmate-0.10.4.dist-info/METADATA,sha256=YaxwAmFkfvKWqB5-WqxcqeLrQyRSRpnQoMJO1E1G4_Q,3204
|
|
38
|
+
labmate-0.10.4.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
39
|
+
labmate-0.10.4.dist-info/top_level.txt,sha256=WWAn6t2zNWsp02gRq6f5cSsGebcs-4L6HBFk0XrcY0o,8
|
|
40
|
+
labmate-0.10.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|