diff options
author | robot-piglet <[email protected]> | 2024-02-07 09:24:12 +0300 |
---|---|---|
committer | robot-piglet <[email protected]> | 2024-02-07 09:33:45 +0300 |
commit | 4c04a8d1e278e6ca7ff16c11b74b2f16fc144253 (patch) | |
tree | 0a699b9d4f7438f50bc455e9dd968e6398cd00f9 | |
parent | 09b8f5f927fecb680d6fce776c5ec49a11b1dd31 (diff) |
Intermediate changes
9 files changed, 18 insertions, 24 deletions
diff --git a/contrib/python/argcomplete/py3/.dist-info/METADATA b/contrib/python/argcomplete/py3/.dist-info/METADATA index c86dfbcaf55..4fe1c2bb9ee 100644 --- a/contrib/python/argcomplete/py3/.dist-info/METADATA +++ b/contrib/python/argcomplete/py3/.dist-info/METADATA @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: argcomplete -Version: 3.2.1 +Version: 3.2.2 Summary: Bash tab completion for argparse Home-page: https://github.com/kislyuk/argcomplete Author: Andrey Kislyuk diff --git a/contrib/python/argcomplete/py3/argcomplete/bash_completion.d/_python-argcomplete b/contrib/python/argcomplete/py3/argcomplete/bash_completion.d/_python-argcomplete index 3023ff289ed..502bf5effc6 100644 --- a/contrib/python/argcomplete/py3/argcomplete/bash_completion.d/_python-argcomplete +++ b/contrib/python/argcomplete/py3/argcomplete/bash_completion.d/_python-argcomplete @@ -144,6 +144,7 @@ _python_argcomplete_global() { __python_argcomplete_expand_tilde_by_ref executable else executable="${words[1]}" + __python_argcomplete_expand_tilde_by_ref executable req_argv=( "${words[@]:1}" ) fi diff --git a/contrib/python/argcomplete/py3/ya.make b/contrib/python/argcomplete/py3/ya.make index ceca768f4d3..4f82b20e4e8 100644 --- a/contrib/python/argcomplete/py3/ya.make +++ b/contrib/python/argcomplete/py3/ya.make @@ -2,7 +2,7 @@ PY3_LIBRARY() -VERSION(3.2.1) +VERSION(3.2.2) LICENSE(Apache-2.0) diff --git a/contrib/python/hypothesis/py3/.dist-info/METADATA b/contrib/python/hypothesis/py3/.dist-info/METADATA index 923731c72c0..86de48abca3 100644 --- a/contrib/python/hypothesis/py3/.dist-info/METADATA +++ b/contrib/python/hypothesis/py3/.dist-info/METADATA @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: hypothesis -Version: 6.96.3 +Version: 6.96.4 Summary: A library for property-based testing Home-page: https://hypothesis.works Author: David R. MacIver and Zac Hatfield-Dodds diff --git a/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/data.py b/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/data.py index 23784939550..8b8462d24d4 100644 --- a/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/data.py +++ b/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/data.py @@ -1093,12 +1093,12 @@ class PrimitiveProvider: if clamped != result and not (math.isnan(result) and allow_nan): self._cd.stop_example(discard=True) self._cd.start_example(DRAW_FLOAT_LABEL) - self._write_float(clamped) + self._draw_float(forced=clamped) result = clamped else: result = nasty_floats[i - 1] - self._write_float(result) + self._draw_float(forced=result) self._cd.stop_example() # (DRAW_FLOAT_LABEL) self._cd.stop_example() # (FLOAT_STRATEGY_DO_DRAW_LABEL) @@ -1170,23 +1170,13 @@ class PrimitiveProvider: # sign_aware_lte(forced, -0.0) does not correctly handle the # math.nan case here. forced_sign_bit = math.copysign(1, forced) == -1 - - self._cd.start_example(DRAW_FLOAT_LABEL) - try: - is_negative = self._cd.draw_bits(1, forced=forced_sign_bit) - f = lex_to_float( - self._cd.draw_bits( - 64, forced=None if forced is None else float_to_lex(abs(forced)) - ) + is_negative = self._cd.draw_bits(1, forced=forced_sign_bit) + f = lex_to_float( + self._cd.draw_bits( + 64, forced=None if forced is None else float_to_lex(abs(forced)) ) - return -f if is_negative else f - finally: - self._cd.stop_example() - - def _write_float(self, f: float) -> None: - sign = float_to_int(f) >> 63 - self._cd.draw_bits(1, forced=sign) - self._cd.draw_bits(64, forced=float_to_lex(abs(f))) + ) + return -f if is_negative else f def _draw_unbounded_integer(self, *, forced: Optional[int] = None) -> int: forced_i = None diff --git a/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/floats.py b/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/floats.py index 2b82bea07c0..407686a1018 100644 --- a/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/floats.py +++ b/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/floats.py @@ -99,7 +99,7 @@ del i, b def decode_exponent(e: int) -> int: - """Take draw_bits(11) and turn it into a suitable floating point exponent + """Take an integer and turn it into a suitable floating point exponent such that lexicographically simpler leads to simpler floats.""" assert 0 <= e <= MAX_EXPONENT return ENCODING_TABLE[e] diff --git a/contrib/python/hypothesis/py3/hypothesis/internal/intervalsets.py b/contrib/python/hypothesis/py3/hypothesis/internal/intervalsets.py index 4a143c80b82..88162b63323 100644 --- a/contrib/python/hypothesis/py3/hypothesis/internal/intervalsets.py +++ b/contrib/python/hypothesis/py3/hypothesis/internal/intervalsets.py @@ -99,6 +99,9 @@ class IntervalSet: def __and__(self, other): return self.intersection(other) + def __eq__(self, other): + return isinstance(other, IntervalSet) and (other.intervals == self.intervals) + def union(self, other): """Merge two sequences of intervals into a single tuple of intervals. diff --git a/contrib/python/hypothesis/py3/hypothesis/version.py b/contrib/python/hypothesis/py3/hypothesis/version.py index 53a5c32cfa7..8360110757f 100644 --- a/contrib/python/hypothesis/py3/hypothesis/version.py +++ b/contrib/python/hypothesis/py3/hypothesis/version.py @@ -8,5 +8,5 @@ # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at https://mozilla.org/MPL/2.0/. -__version_info__ = (6, 96, 3) +__version_info__ = (6, 96, 4) __version__ = ".".join(map(str, __version_info__)) diff --git a/contrib/python/hypothesis/py3/ya.make b/contrib/python/hypothesis/py3/ya.make index 1623f2cb899..73016652bc0 100644 --- a/contrib/python/hypothesis/py3/ya.make +++ b/contrib/python/hypothesis/py3/ya.make @@ -2,7 +2,7 @@ PY3_LIBRARY() -VERSION(6.96.3) +VERSION(6.96.4) LICENSE(MPL-2.0) |