fix(python314): replace deprecated ast.NameConstant with ast.Constant#14
Open
Kristinita wants to merge 1 commit intopjknkda:masterfrom
Open
fix(python314): replace deprecated ast.NameConstant with ast.Constant#14Kristinita wants to merge 1 commit intopjknkda:masterfrom
ast.NameConstant with ast.Constant#14Kristinita wants to merge 1 commit intopjknkda:masterfrom
Conversation
https://docs.python.org/3/library/ast.html#ast.AST.end_col_offset Signed-off-by: Kristinita <Kristinita@users.noreply.github.com>
ast.NameConstant with ast.Constant
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.
1. Summary
I fixed the critical problem due to which flake8-datetimez isn’t compatible with Python 3.14.
2. Details of the problem
2.1. Deprecated syntax
The documentation of the
astmodule:2.2. The example of the problem fixing
scrapy#6463
The contributor of Scrapy just replaced
ast.NameConstantwithast.Constant.2.3. Example file
KiraExample.py:2.4. Terminal commands
2.5. Behavior
2.5.1. Before the pull request
2.5.2. After the pull request
No errors and warnings.
3. Failed tests
Note that all your tests failed on my Windows. I got this problem for the original and modified code. When I ran commands
python -m unittest test_datetimez.pyandpytest test_datetimez.py, I got errorsPermissionError: [Errno 13] Permission denied. The part of my traceback:4. Testing environment
Thanks.