Repository navigation
add analysis.lexical-return-callable-typevars: keep a type variable t… - #217
Open
KotlinIsland wants to merge 1 commit into
Open
KotlinIsland wants to merge 1 commit into
KotlinIsland wants to merge 1 commit into
Conversation
…hat only a returned callable mentions on the function off by default, and the same for .py and .by when enabled. typeshed keeps the moved reading unless analysis.lexical-return-callable-typevars-in-typeshed is also set, since stubs like unittest.skip rely on it
Contributor
by ecosystem round-tripbase: regressions: 0, changed: 20, improvements: 0, error changes: 0 (across 29674 files in 149 projects) ℹ️ changed round-trip outputpycryptodome — _by_sourcemap.py--- base/_by_sourcemap.py
+++ head/_by_sourcemap.py
@@ -432,5 +432,5 @@
"/tmp/tmp6c8xywta/pycryptodome/build/lib/Crypto/SelfTest/Random/test_random.py": {"by": "sha256:11a20824d4f1ae9b303629b26d716d5f6acfda24239a49ecf10c17dece54850d", "py": "sha256:ad0707618f4a8114a8ffb4f1cd2bd61780956bdb60f586e55937ed08c851dc9a"},
"/tmp/tmp6c8xywta/pycryptodome/build/lib/Crypto/SelfTest/Signature/__init__.py": {"by": "sha256:43095f4173f93e9c98d8e8be9f642e9a35030cbff6fa445e5d7e1773f00d05f7", "py": "sha256:43095f4173f93e9c98d8e8be9f642e9a35030cbff6fa445e5d7e1773f00d05f7"},
- "/tmp/tmp6c8xywta/pycryptodome/build/lib/Crypto/SelfTest/Signature/test_dss.py": {"by": "sha256:07642f460f9e613957797c4957a02f260b3f7e690755e68cfd8bd92bdb21e0cd", "py": "sha256:31c860f46bca46efc9de84107ca9879e331050782e43307e1dcf8705a1670fb6"},
+ "/tmp/tmp6c8xywta/pycryptodome/build/lib/Crypto/SelfTest/Signature/test_dss.py": {"by": "sha256:07642f460f9e613957797c4957a02f260b3f7e690755e68cfd8bd92bdb21e0cd", "py": "sha256:ea795e437f46a7faa761746ea56412cd2f1902a81ab8ade2c6a374083be6c8e8"},
"/tmp/tmp6c8xywta/pycryptodome/build/lib/Crypto/SelfTest/Signature/test_eddsa.py": {"by": "sha256:b48e98ea0cf6dd574541e13828dbbd64d1e80e6479edc509553228916c2a844e", "py": "sha256:3b21b0b5cb6cf5c675e12923affcf477d97cffa6b9d5d517525ba57aafe705e1"},
"/tmp/tmp6c8xywta/pycryptodome/build/lib/Crypto/SelfTest/Signature/test_mldsa.py": {"by": "sha256:78e10c68d2ee0b721f90d1a0c01a62757fbd4d3a32de96e84859507fa0f118cb", "py": "sha256:c25b5b7f039ad66de2de72d54e4c961f4d51dbe4ee87d6535eca64fd274b8518"},pycryptodome — lib/Crypto/SelfTest/Signature/test_dss.py--- base/lib/Crypto/SelfTest/Signature/test_dss.py
+++ head/lib/Crypto/SelfTest/Signature/test_dss.py
@@ -647,7 +647,7 @@
TestKey = namedtuple("TestKey", "p q g x y")
new_keys = {}
- for k in _soundness_iter(self.keys, (tuple, str)):
- tk = TestKey(*[t2l(y) for y in _soundness_iter(_soundness_check(k[:-1], (tuple, str)), str)])
- new_keys[_soundness_check(k[-1], str)] = tk
+ for k in self.keys:
+ tk = TestKey(*[t2l(y) for y in k[:-1]])
+ new_keys[k[-1]] = tk
self.keys = new_keyspytest-autoprofile — lib/pytest_autoprofile/__init__.py(only produced on base)pytest-autoprofile — lib/pytest_autoprofile/_doctest.py(only produced on base)pytest-autoprofile — lib/pytest_autoprofile/_json.py(only produced on base)pytest-autoprofile — lib/pytest_autoprofile/_multiprocessing.py(only produced on base)pytest-autoprofile — lib/pytest_autoprofile/_patches.py(only produced on base)pytest-autoprofile — lib/pytest_autoprofile/_test_util_capture_warnings.py(only produced on base)pytest-autoprofile — lib/pytest_autoprofile/_test_utils.py(only produced on base)pytest-autoprofile — lib/pytest_autoprofile/_typing.py(only produced on base)pytest-autoprofile — lib/pytest_autoprofile/_warnings.py(only produced on base)pytest-autoprofile — lib/pytest_autoprofile/_xdoctest.py(only produced on base)pytest-autoprofile — lib/pytest_autoprofile/importers.py(only produced on base)pytest-autoprofile — lib/pytest_autoprofile/option_hooks.py(only produced on base)pytest-autoprofile — lib/pytest_autoprofile/plugin.py(only produced on base)pytest-autoprofile — lib/pytest_autoprofile/profiler.py(only produced on base)pytest-autoprofile — lib/pytest_autoprofile/rewriting.py(only produced on base)pytest-autoprofile — lib/pytest_autoprofile/setup.py(only produced on base)pytest-autoprofile — lib/pytest_autoprofile/startup_hook.py(only produced on base)pytest-autoprofile — lib/pytest_autoprofile/utils.py(only produced on base)💥 fails to round-trip (unchanged from base)
⏭️ skipped
|
KotlinIsland
force-pushed
the
lexical-return-callable-typevars
branch
from
October 26, 2026 15:59
1386799 to
00665ca
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…hat only a returned callable mentions on the function
on by default, off under ty-compatible, and the same for .py and .by. typeshed keeps the moved reading unless analysis.lexical-return-callable-typevars-in-typeshed is set, since stubs like unittest.skip rely on it. inherited mdtests whose subject is the moved reading pin the option off