python-ta 2.9.1__tar.gz → 2.9.2__tar.gz
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.
- {python_ta-2.9.1/python_ta.egg-info → python_ta-2.9.2}/PKG-INFO +2 -2
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/__init__.py +1 -1
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/checkers/redundant_assignment_checker.py +4 -2
- {python_ta-2.9.1 → python_ta-2.9.2/python_ta.egg-info}/PKG-INFO +2 -2
- {python_ta-2.9.1 → python_ta-2.9.2}/LICENSE +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/MANIFEST.in +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/README.md +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/pyproject.toml +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/__main__.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/cfg/__init__.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/cfg/cfg_generator.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/cfg/graph.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/cfg/visitor.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/checkers/__init__.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/checkers/forbidden_import_checker.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/checkers/forbidden_io_function_checker.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/checkers/forbidden_python_syntax_checker.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/checkers/global_variables_checker.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/checkers/inconsistent_or_missing_returns_checker.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/checkers/invalid_for_target_checker.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/checkers/invalid_name_checker.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/checkers/invalid_range_index_checker.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/checkers/missing_space_in_doctest_checker.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/checkers/one_iteration_checker.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/checkers/possibly_undefined_checker.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/checkers/pycodestyle_checker.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/checkers/shadowing_in_comprehension_checker.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/checkers/top_level_code_checker.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/checkers/type_annotation_checker.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/checkers/unmentioned_parameter_checker.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/checkers/unnecessary_indexing_checker.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/config/.pylintrc +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/config/__init__.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/config/messages_config.toml +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/contracts/__init__.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/contracts/__main__.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/debug/__init__.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/debug/accumulation_table.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/debug/recursion_table.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/debug/snapshot.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/debug/snapshot_tracer.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/debug/webstepper/99ee5c67fd0c522b4b6a.png +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/debug/webstepper/fd6133fe40f4f90440d6.png +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/debug/webstepper/index.bundle.js +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/debug/webstepper/index.bundle.js.LICENSE.txt +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/debug/webstepper/index.html +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/patches/__init__.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/patches/checkers.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/patches/error_messages.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/patches/messages.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/patches/transforms.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/reporters/__init__.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/reporters/color_reporter.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/reporters/core.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/reporters/html_reporter.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/reporters/json_reporter.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/reporters/node_printers.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/reporters/plain_reporter.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/reporters/stat_reporter.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/reporters/templates/jquery-3.7.1.slim.min.js +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/reporters/templates/pyta_logo_markdown.png +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/reporters/templates/script.js +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/reporters/templates/stylesheet.css +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/reporters/templates/template.html.jinja +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/transforms/__init__.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/transforms/setendings.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/transforms/z3_visitor.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/upload.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/util/__init__.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/util/tree.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/utils.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/z3/__init__.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta/z3/z3_parser.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta.egg-info/SOURCES.txt +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta.egg-info/dependency_links.txt +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta.egg-info/entry_points.txt +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta.egg-info/not-zip-safe +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta.egg-info/requires.txt +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/python_ta.egg-info/top_level.txt +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/setup.cfg +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/setup.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/tests/test_black.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/tests/test_check.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/tests/test_examples.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/tests/test_init_logging.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/tests/test_main.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/tests/test_setendings.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/tests/test_subclass_contracts.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/tests/test_validate_invariants.py +0 -0
- {python_ta-2.9.1 → python_ta-2.9.2}/tests/test_z3_visitor.py +0 -0
|
@@ -17,7 +17,7 @@ if __name__ == '__main__':
|
|
|
17
17
|
|
|
18
18
|
from __future__ import annotations
|
|
19
19
|
|
|
20
|
-
__version__ = "2.9.
|
|
20
|
+
__version__ = "2.9.2" # Version number
|
|
21
21
|
# First, remove underscore from builtins if it has been bound in the REPL.
|
|
22
22
|
# Must appear before other imports from pylint/python_ta.
|
|
23
23
|
import builtins
|
|
@@ -76,7 +76,7 @@ class RedundantAssignmentChecker(BaseChecker):
|
|
|
76
76
|
@only_required_for_messages("redundant-assignment")
|
|
77
77
|
def visit_annassign(self, node: nodes.AnnAssign) -> None:
|
|
78
78
|
"""Visit the annotated assign node"""
|
|
79
|
-
if node in self._redundant_assignment:
|
|
79
|
+
if node.value is not None and node in self._redundant_assignment:
|
|
80
80
|
self.add_message("redundant-assignment", node=node, args=node.target.name)
|
|
81
81
|
|
|
82
82
|
def visit_module(self, node: nodes.Module) -> None:
|
|
@@ -151,7 +151,9 @@ class RedundantAssignmentChecker(BaseChecker):
|
|
|
151
151
|
parent = (
|
|
152
152
|
node.parent.parent if isinstance(node.parent, nodes.Tuple) else node.parent
|
|
153
153
|
)
|
|
154
|
-
if
|
|
154
|
+
if isinstance(parent, nodes.AnnAssign) and parent.value is None:
|
|
155
|
+
continue
|
|
156
|
+
elif node.name in gen.difference(kill):
|
|
155
157
|
# add redundant assignment
|
|
156
158
|
if parent not in self._redundant_assignment:
|
|
157
159
|
self._redundant_assignment[parent] = []
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_ta-2.9.1 → python_ta-2.9.2}/python_ta/checkers/inconsistent_or_missing_returns_checker.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_ta-2.9.1 → python_ta-2.9.2}/python_ta/checkers/shadowing_in_comprehension_checker.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|