Conversation
Bumps [pyside6](https://pyside.org) from 6.11.1 to 6.11.2. --- updated-dependencies: - dependency-name: pyside6 dependency-version: 6.11.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
chore(deps): bump pyside6 from 6.11.1 to 6.11.2
…151) (#152) The wrapper installed by patch_generic_unit_parser() adds one stack frame, shifting astropy's frame-level bookkeeping: astropy.utils.parsing calls get_caller_module_dict(2) directly and its _patch_ply_module wrapper adds two more levels, so the extra frame made the walk land on astropy's parsing wrapper instead of the grammar-defining frame. The fallback then fired on plain CPython and corrupted unit/coordinate parsing when running from source. - Only install the patch in the Nuitka-compiled standalone binary ('__compiled__' in globals()), evaluated in pyobs_gui/__init__.py which is guaranteed compiled; otherwise it is a strict no-op. - Step one level deeper (levels + 1) in the patched walks to restore the original frame targeting, so the fallback only fires when the walk genuinely lacks the grammar (compiled frames without f_locals). - Register the vendored grammar namespace in sys.modules and materialize its __file__ stub so PLY's inspect.getmodule()/getsourcefile() validation works when the grammar has to be rebuilt. - Scope the fallback to astropy.units.format.generic only: angle/cds/ogip grammars are not vendored, so feed the broken-locals pdict back unchanged instead of silently parsing with the wrong grammar.
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.
version 2.0.1