Skip to content

for issue #49656 STYLE enable pylint's redefined-outer-name #49708

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Nov 15, 2022
Merged

for issue #49656 STYLE enable pylint's redefined-outer-name #49708

merged 12 commits into from
Nov 15, 2022

Conversation

ramvikrams
Copy link
Contributor

@MarcoGorelli Sir in the file pandas\core\generic.py I had one doubt for line 7684
and I could not understand how todo the correct changes in pandas\core\resmple.py

from datetime import timedelta
from datetime import timedelta as td
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would import datetime as dt and then dt.timedelta work?

Comment on lines 136 to 135
common as com,
common,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it work to just import the various functions from pandas.core.common? from pandas.core.common import get_rename_function, ...?

com=com,
com=commmon,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this shouldn't change

@ramvikrams
Copy link
Contributor Author

Done the changes sir

indexing,
missing,
nanops,
sample,
)
from pandas.core.common import get_rename_function as com
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no just

from pandas.core.common import get_rename_function

and then use get_rename_function instead of com.get_rename_function

likewise for any other com. functions

@@ -6318,7 +6317,8 @@ def _convert(
self: NDFrameT,
datetime: bool_t = False,
numeric: bool_t = False,
timedelta: bool_t = False,
# td: bool_t = False,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this

@@ -6318,7 +6317,8 @@ def _convert(
self: NDFrameT,
datetime: bool_t = False,
numeric: bool_t = False,
timedelta: bool_t = False,
# td: bool_t = False,
dt.timedelta: bool_t = False,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this shouldn't change, it's a function argument

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like with the other PR, you're introducing a number of changes which aren't valid Python syntax

Do you have much experience with Python? I'm tempted to suggest you do a bit more study before coming back to contribute

@@ -2,9 +2,8 @@
from __future__ import annotations

import collections
from datetime import timedelta
from datetime ad dt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this isn't valid syntax...

@ramvikrams
Copy link
Contributor Author

Like with the other PR, you're introducing a number of changes which aren't valid Python syntax

Do you have much experience with Python? I'm tempted to suggest you do a bit more study before coming back to contribute

yes sir

@MarcoGorelli
Copy link
Member

Getting closer - can you also run pre-commit on the files you've modified?

pre-commit run --files pandas/core/generic.py

@ramvikrams
Copy link
Contributor Author

Getting closer - can you also run pre-commit on the files you've modified?

pre-commit run --files pandas/core/generic.py

sir this error is coming error: can't find Rust compiler

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you show your full output please?

@@ -2,9 +2,8 @@
from __future__ import annotations

import collections
from datetime import timedelta
import datetime as dt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now you'll need to replace timedelta (not the function argument) with dt.timedelta

@ramvikrams
Copy link
Contributor Author

 [INFO] Installing environment for local.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('C:\\Users\\ramvi\\.cache\\pre-commit\\repodhvym6_z\\py_env-python3.11\\Scripts\\python.EXE', '-mpip', 'install', '.', 'autotyping==22.9.0', 'black==22.6.0', 'libcst==0.4.7')
return code: 1
expected return code: 0
stdout:
    Processing c:\users\ramvi\.cache\pre-commit\repodhvym6_z
      Preparing metadata (setup.py): started
      Preparing metadata (setup.py): finished with status 'done'
    Collecting autotyping==22.9.0
      Using cached autotyping-22.9.0-py3-none-any.whl (8.2 kB)
    Collecting black==22.6.0
      Using cached black-22.6.0-py3-none-any.whl (156 kB)
    Collecting libcst==0.4.7
      Using cached libcst-0.4.7.tar.gz (739 kB)
      Installing build dependencies: started
      Installing build dependencies: finished with status 'done'
      Getting requirements to build wheel: started
      Getting requirements to build wheel: finished with status 'done'
      Installing backend dependencies: started
      Installing backend dependencies: finished with status 'done'
      Preparing metadata (pyproject.toml): started
      Preparing metadata (pyproject.toml): finished with status 'done'
    Collecting click>=8.0.0
      Using cached click-8.1.3-py3-none-any.whl (96 kB)
    Collecting platformdirs>=2
      Using cached platformdirs-2.5.4-py3-none-any.whl (14 kB)
    Collecting pathspec>=0.9.0
      Using cached pathspec-0.10.2-py3-none-any.whl (28 kB)
    Collecting mypy-extensions>=0.4.3
      Using cached mypy_extensions-0.4.3-py2.py3-none-any.whl (4.5 kB)
    Collecting typing-extensions>=3.7.4.2
      Using cached typing_extensions-4.4.0-py3-none-any.whl (26 kB)
    Collecting typing-inspect>=0.4.0
      Using cached typing_inspect-0.8.0-py3-none-any.whl (8.7 kB)
    Collecting pyyaml>=5.2
      Using cached PyYAML-6.0-cp311-cp311-win_amd64.whl (143 kB)
    Collecting colorama
      Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
    Building wheels for collected packages: libcst, pre-commit-placeholder-package
      Building wheel for libcst (pyproject.toml): started
      Building wheel for libcst (pyproject.toml): finished with status 'error'
      Building wheel for pre-commit-placeholder-package (setup.py): started
      Building wheel for pre-commit-placeholder-package (setup.py): finished with status 'done'
      Created wheel for pre-commit-placeholder-package: filename=pre_commit_placeholder_package-0.0.0-py3-none-any.whl size=1157 sha256=3ca1a684d90a60ddba87071c0dd10a519c8ed1718ac04eaa2c6bc7f4ab2302b9
      Stored in directory: C:\Users\ramvi\AppData\Local\Temp\pip-ephem-wheel-cache-35q5ih_9\wheels\3e\a6\38\b043e034367f7b375542804e9bb280fc319506611d8ac395a3
    Successfully built pre-commit-placeholder-package
    Failed to build libcst
stderr:
      error: subprocess-exited-with-error
      Building wheel for libcst (pyproject.toml) did not run successfully.
      exit code: 1
      [316 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-311
      creating build\lib.win-amd64-cpython-311\libcst
      copying libcst\tool.py -> build\lib.win-amd64-cpython-311\libcst
      copying libcst\_add_slots.py -> build\lib.win-amd64-cpython-311\libcst
      copying libcst\_batched_visitor.py -> build\lib.win-amd64-cpython-311\libcst
      copying libcst\_exceptions.py -> build\lib.win-amd64-cpython-311\libcst
      copying libcst\_flatten_sentinel.py -> build\lib.win-amd64-cpython-311\libcst
      copying libcst\_maybe_sentinel.py -> build\lib.win-amd64-cpython-311\libcst
      copying libcst\_metadata_dependent.py -> build\lib.win-amd64-cpython-311\libcst
      copying libcst\_position.py -> build\lib.win-amd64-cpython-311\libcst
      copying libcst\_removal_sentinel.py -> build\lib.win-amd64-cpython-311\libcst
      copying libcst\_tabs.py -> build\lib.win-amd64-cpython-311\libcst
      copying libcst\_typed_visitor.py -> build\lib.win-amd64-cpython-311\libcst
      copying libcst\_typed_visitor_base.py -> build\lib.win-amd64-cpython-311\libcst
      copying libcst\_types.py -> build\lib.win-amd64-cpython-311\libcst
      copying libcst\_type_enforce.py -> build\lib.win-amd64-cpython-311\libcst
      copying libcst\_version.py -> build\lib.win-amd64-cpython-311\libcst
      copying libcst\_visitors.py -> build\lib.win-amd64-cpython-311\libcst
      copying libcst\__init__.py -> build\lib.win-amd64-cpython-311\libcst
      creating build\lib.win-amd64-cpython-311\libcst\codegen
      copying libcst\codegen\gather.py -> build\lib.win-amd64-cpython-311\libcst\codegen
      copying libcst\codegen\generate.py -> build\lib.win-amd64-cpython-311\libcst\codegen
      copying libcst\codegen\gen_matcher_classes.py -> build\lib.win-amd64-cpython-311\libcst\codegen
      copying libcst\codegen\gen_type_mapping.py -> build\lib.win-amd64-cpython-311\libcst\codegen
      copying libcst\codegen\gen_visitor_functions.py -> build\lib.win-amd64-cpython-311\libcst\codegen
      copying libcst\codegen\transforms.py -> build\lib.win-amd64-cpython-311\libcst\codegen
      copying libcst\codegen\__init__.py -> build\lib.win-amd64-cpython-311\libcst\codegen
      creating build\lib.win-amd64-cpython-311\libcst\codemod
      copying libcst\codemod\_cli.py -> build\lib.win-amd64-cpython-311\libcst\codemod
      copying libcst\codemod\_codemod.py -> build\lib.win-amd64-cpython-311\libcst\codemod
      copying libcst\codemod\_command.py -> build\lib.win-amd64-cpython-311\libcst\codemod
      copying libcst\codemod\_context.py -> build\lib.win-amd64-cpython-311\libcst\codemod
      copying libcst\codemod\_dummy_pool.py -> build\lib.win-amd64-cpython-311\libcst\codemod
      copying libcst\codemod\_runner.py -> build\lib.win-amd64-cpython-311\libcst\codemod
      copying libcst\codemod\_testing.py -> build\lib.win-amd64-cpython-311\libcst\codemod
      copying libcst\codemod\_visitor.py -> build\lib.win-amd64-cpython-311\libcst\codemod
      copying libcst\codemod\__init__.py -> build\lib.win-amd64-cpython-311\libcst\codemod
      creating build\lib.win-amd64-cpython-311\libcst\helpers
      copying libcst\helpers\common.py -> build\lib.win-amd64-cpython-311\libcst\helpers
      copying libcst\helpers\expression.py -> build\lib.win-amd64-cpython-311\libcst\helpers
      copying libcst\helpers\module.py -> build\lib.win-amd64-cpython-311\libcst\helpers
      copying libcst\helpers\_template.py -> build\lib.win-amd64-cpython-311\libcst\helpers
      copying libcst\helpers\__init__.py -> build\lib.win-amd64-cpython-311\libcst\helpers
      creating build\lib.win-amd64-cpython-311\libcst\matchers
      copying libcst\matchers\_decorators.py -> build\lib.win-amd64-cpython-311\libcst\matchers
      copying libcst\matchers\_matcher_base.py -> build\lib.win-amd64-cpython-311\libcst\matchers
      copying libcst\matchers\_return_types.py -> build\lib.win-amd64-cpython-311\libcst\matchers
      copying libcst\matchers\_visitors.py -> build\lib.win-amd64-cpython-311\libcst\matchers
      copying libcst\matchers\__init__.py -> build\lib.win-amd64-cpython-311\libcst\matchers
      creating build\lib.win-amd64-cpython-311\libcst\metadata
      copying libcst\metadata\base_provider.py -> build\lib.win-amd64-cpython-311\libcst\metadata
      copying libcst\metadata\expression_context_provider.py -> build\lib.win-amd64-cpython-311\libcst\metadata
      copying libcst\metadata\full_repo_manager.py -> build\lib.win-amd64-cpython-311\libcst\metadata
      copying libcst\metadata\name_provider.py -> build\lib.win-amd64-cpython-311\libcst\metadata
      copying libcst\metadata\parent_node_provider.py -> build\lib.win-amd64-cpython-311\libcst\metadata
      copying libcst\metadata\position_provider.py -> build\lib.win-amd64-cpython-311\libcst\metadata
      copying libcst\metadata\reentrant_codegen.py -> build\lib.win-amd64-cpython-311\libcst\metadata
      copying libcst\metadata\scope_provider.py -> build\lib.win-amd64-cpython-311\libcst\metadata
      copying libcst\metadata\span_provider.py -> build\lib.win-amd64-cpython-311\libcst\metadata
      copying libcst\metadata\type_inference_provider.py -> build\lib.win-amd64-cpython-311\libcst\metadata
      copying libcst\metadata\wrapper.py -> build\lib.win-amd64-cpython-311\libcst\metadata
      copying libcst\metadata\__init__.py -> build\lib.win-amd64-cpython-311\libcst\metadata
      creating build\lib.win-amd64-cpython-311\libcst\testing
      copying libcst\testing\utils.py -> build\lib.win-amd64-cpython-311\libcst\testing
      copying libcst\testing\__init__.py -> build\lib.win-amd64-cpython-311\libcst\testing
      creating build\lib.win-amd64-cpython-311\libcst\tests
      copying libcst\tests\test_add_slots.py -> build\lib.win-amd64-cpython-311\libcst\tests
      copying libcst\tests\test_batched_visitor.py -> build\lib.win-amd64-cpython-311\libcst\tests
      copying libcst\tests\test_deep_clone.py -> build\lib.win-amd64-cpython-311\libcst\tests
      copying libcst\tests\test_deep_replace.py -> build\lib.win-amd64-cpython-311\libcst\tests
      copying libcst\tests\test_e2e.py -> build\lib.win-amd64-cpython-311\libcst\tests
      copying libcst\tests\test_exceptions.py -> build\lib.win-amd64-cpython-311\libcst\tests
      copying libcst\tests\test_fuzz.py -> build\lib.win-amd64-cpython-311\libcst\tests
      copying libcst\tests\test_pyre_integration.py -> build\lib.win-amd64-cpython-311\libcst\tests
      copying libcst\tests\test_tabs.py -> build\lib.win-amd64-cpython-311\libcst\tests
      copying libcst\tests\test_tool.py -> build\lib.win-amd64-cpython-311\libcst\tests
      copying libcst\tests\test_type_enforce.py -> build\lib.win-amd64-cpython-311\libcst\tests
      copying libcst\tests\test_visitor.py -> build\lib.win-amd64-cpython-311\libcst\tests
      copying libcst\tests\__init__.py -> build\lib.win-amd64-cpython-311\libcst\tests
      creating build\lib.win-amd64-cpython-311\libcst\_nodes
      copying libcst\_nodes\base.py -> build\lib.win-amd64-cpython-311\libcst\_nodes
      copying libcst\_nodes\deep_equals.py -> build\lib.win-amd64-cpython-311\libcst\_nodes
      copying libcst\_nodes\expression.py -> build\lib.win-amd64-cpython-311\libcst\_nodes
      copying libcst\_nodes\internal.py -> build\lib.win-amd64-cpython-311\libcst\_nodes
      copying libcst\_nodes\module.py -> build\lib.win-amd64-cpython-311\libcst\_nodes
      copying libcst\_nodes\op.py -> build\lib.win-amd64-cpython-311\libcst\_nodes
      copying libcst\_nodes\statement.py -> build\lib.win-amd64-cpython-311\libcst\_nodes
      copying libcst\_nodes\whitespace.py -> build\lib.win-amd64-cpython-311\libcst\_nodes
      copying libcst\_nodes\__init__.py -> build\lib.win-amd64-cpython-311\libcst\_nodes
      creating build\lib.win-amd64-cpython-311\libcst\_parser
      copying libcst\_parser\base_parser.py -> build\lib.win-amd64-cpython-311\libcst\_parser
      copying libcst\_parser\custom_itertools.py -> build\lib.win-amd64-cpython-311\libcst\_parser
      copying libcst\_parser\detect_config.py -> build\lib.win-amd64-cpython-311\libcst\_parser
      copying libcst\_parser\entrypoints.py -> build\lib.win-amd64-cpython-311\libcst\_parser
      copying libcst\_parser\grammar.py -> build\lib.win-amd64-cpython-311\libcst\_parser
      copying libcst\_parser\production_decorator.py -> build\lib.win-amd64-cpython-311\libcst\_parser
      copying libcst\_parser\python_parser.py -> build\lib.win-amd64-cpython-311\libcst\_parser
      copying libcst\_parser\py_whitespace_parser.py -> build\lib.win-amd64-cpython-311\libcst\_parser
      copying libcst\_parser\whitespace_parser.py -> build\lib.win-amd64-cpython-311\libcst\_parser
      copying libcst\_parser\wrapped_tokenize.py -> build\lib.win-amd64-cpython-311\libcst\_parser
      copying libcst\_parser\__init__.py -> build\lib.win-amd64-cpython-311\libcst\_parser
      creating build\lib.win-amd64-cpython-311\libcst\codegen\tests
      copying libcst\codegen\tests\test_codegen_clean.py -> build\lib.win-amd64-cpython-311\libcst\codegen\tests
      copying libcst\codegen\tests\__init__.py -> build\lib.win-amd64-cpython-311\libcst\codegen\tests
      creating build\lib.win-amd64-cpython-311\libcst\codemod\commands
      copying libcst\codemod\commands\add_pyre_directive.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands
      copying libcst\codemod\commands\add_trailing_commas.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands
      copying libcst\codemod\commands\convert_format_to_fstring.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands
      copying libcst\codemod\commands\convert_namedtuple_to_dataclass.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands
      copying libcst\codemod\commands\convert_percent_format_to_fstring.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands
      copying libcst\codemod\commands\convert_type_comments.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands
      copying libcst\codemod\commands\ensure_import_present.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands
      copying libcst\codemod\commands\fix_pyre_directives.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands
      copying libcst\codemod\commands\noop.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands
      copying libcst\codemod\commands\remove_pyre_directive.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands
      copying libcst\codemod\commands\remove_unused_imports.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands
      copying libcst\codemod\commands\rename.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands
      copying libcst\codemod\commands\strip_strings_from_types.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands
      copying libcst\codemod\commands\unnecessary_format_string.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands
      copying libcst\codemod\commands\__init__.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands
      creating build\lib.win-amd64-cpython-311\libcst\codemod\tests
      copying libcst\codemod\tests\test_codemod.py -> build\lib.win-amd64-cpython-311\libcst\codemod\tests
      copying libcst\codemod\tests\test_codemod_cli.py -> build\lib.win-amd64-cpython-311\libcst\codemod\tests
      copying libcst\codemod\tests\test_metadata.py -> build\lib.win-amd64-cpython-311\libcst\codemod\tests
      copying libcst\codemod\tests\test_runner.py -> build\lib.win-amd64-cpython-311\libcst\codemod\tests
      copying libcst\codemod\tests\__init__.py -> build\lib.win-amd64-cpython-311\libcst\codemod\tests
      creating build\lib.win-amd64-cpython-311\libcst\codemod\visitors
      copying libcst\codemod\visitors\_add_imports.py -> build\lib.win-amd64-cpython-311\libcst\codemod\visitors
      copying libcst\codemod\visitors\_apply_type_annotations.py -> build\lib.win-amd64-cpython-311\libcst\codemod\visitors
      copying libcst\codemod\visitors\_gather_comments.py -> build\lib.win-amd64-cpython-311\libcst\codemod\visitors
      copying libcst\codemod\visitors\_gather_exports.py -> build\lib.win-amd64-cpython-311\libcst\codemod\visitors
      copying libcst\codemod\visitors\_gather_global_names.py -> build\lib.win-amd64-cpython-311\libcst\codemod\visitors
      copying libcst\codemod\visitors\_gather_imports.py -> build\lib.win-amd64-cpython-311\libcst\codemod\visitors
      copying libcst\codemod\visitors\_gather_string_annotation_names.py -> build\lib.win-amd64-cpython-311\libcst\codemod\visitors
      copying libcst\codemod\visitors\_gather_unused_imports.py -> build\lib.win-amd64-cpython-311\libcst\codemod\visitors
      copying libcst\codemod\visitors\_imports.py -> build\lib.win-amd64-cpython-311\libcst\codemod\visitors
      copying libcst\codemod\visitors\_remove_imports.py -> build\lib.win-amd64-cpython-311\libcst\codemod\visitors
      copying libcst\codemod\visitors\__init__.py -> build\lib.win-amd64-cpython-311\libcst\codemod\visitors
      creating build\lib.win-amd64-cpython-311\libcst\codemod\commands\tests
      copying libcst\codemod\commands\tests\test_add_pyre_directive.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands\tests
      copying libcst\codemod\commands\tests\test_add_trailing_commas.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands\tests
      copying libcst\codemod\commands\tests\test_convert_format_to_fstring.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands\tests
      copying libcst\codemod\commands\tests\test_convert_namedtuple_to_dataclass.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands\tests
      copying libcst\codemod\commands\tests\test_convert_percent_format_to_fstring.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands\tests
      copying libcst\codemod\commands\tests\test_convert_type_comments.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands\tests
      copying libcst\codemod\commands\tests\test_ensure_import_present.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands\tests
      copying libcst\codemod\commands\tests\test_fix_pyre_directives.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands\tests
      copying libcst\codemod\commands\tests\test_noop.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands\tests
      copying libcst\codemod\commands\tests\test_remove_pyre_directive.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands\tests
      copying libcst\codemod\commands\tests\test_remove_unused_imports.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands\tests
      copying libcst\codemod\commands\tests\test_rename.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands\tests
      copying libcst\codemod\commands\tests\test_strip_strings_from_types.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands\tests
      copying libcst\codemod\commands\tests\test_unnecessary_format_string.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands\tests
      copying libcst\codemod\commands\tests\__init__.py -> build\lib.win-amd64-cpython-311\libcst\codemod\commands\tests
      creating build\lib.win-amd64-cpython-311\libcst\codemod\visitors\tests
      copying libcst\codemod\visitors\tests\test_add_imports.py -> build\lib.win-amd64-cpython-311\libcst\codemod\visitors\tests
      copying libcst\codemod\visitors\tests\test_apply_type_annotations.py -> build\lib.win-amd64-cpython-311\libcst\codemod\visitors\tests
      copying libcst\codemod\visitors\tests\test_gather_comments.py -> build\lib.win-amd64-cpython-311\libcst\codemod\visitors\tests
      copying libcst\codemod\visitors\tests\test_gather_exports.py -> build\lib.win-amd64-cpython-311\libcst\codemod\visitors\tests
      copying libcst\codemod\visitors\tests\test_gather_global_names.py -> build\lib.win-amd64-cpython-311\libcst\codemod\visitors\tests
      copying libcst\codemod\visitors\tests\test_gather_imports.py -> build\lib.win-amd64-cpython-311\libcst\codemod\visitors\tests
      copying libcst\codemod\visitors\tests\test_gather_string_annotation_names.py -> build\lib.win-amd64-cpython-311\libcst\codemod\visitors\tests
      copying libcst\codemod\visitors\tests\test_gather_unused_imports.py -> build\lib.win-amd64-cpython-311\libcst\codemod\visitors\tests
      copying libcst\codemod\visitors\tests\test_remove_imports.py -> build\lib.win-amd64-cpython-311\libcst\codemod\visitors\tests
      copying libcst\codemod\visitors\tests\__init__.py -> build\lib.win-amd64-cpython-311\libcst\codemod\visitors\tests
      creating build\lib.win-amd64-cpython-311\libcst\helpers\tests
      copying libcst\helpers\tests\test_expression.py -> build\lib.win-amd64-cpython-311\libcst\helpers\tests
      copying libcst\helpers\tests\test_module.py -> build\lib.win-amd64-cpython-311\libcst\helpers\tests
      copying libcst\helpers\tests\test_template.py -> build\lib.win-amd64-cpython-311\libcst\helpers\tests
      copying libcst\helpers\tests\__init__.py -> build\lib.win-amd64-cpython-311\libcst\helpers\tests
      creating build\lib.win-amd64-cpython-311\libcst\matchers\tests
      copying libcst\matchers\tests\test_decorators.py -> build\lib.win-amd64-cpython-311\libcst\matchers\tests
      copying libcst\matchers\tests\test_extract.py -> build\lib.win-amd64-cpython-311\libcst\matchers\tests
      copying libcst\matchers\tests\test_findall.py -> build\lib.win-amd64-cpython-311\libcst\matchers\tests
      copying libcst\matchers\tests\test_matchers.py -> build\lib.win-amd64-cpython-311\libcst\matchers\tests
      copying libcst\matchers\tests\test_matchers_with_metadata.py -> build\lib.win-amd64-cpython-311\libcst\matchers\tests
      copying libcst\matchers\tests\test_replace.py -> build\lib.win-amd64-cpython-311\libcst\matchers\tests
      copying libcst\matchers\tests\test_visitors.py -> build\lib.win-amd64-cpython-311\libcst\matchers\tests
      copying libcst\matchers\tests\__init__.py -> build\lib.win-amd64-cpython-311\libcst\matchers\tests
      creating build\lib.win-amd64-cpython-311\libcst\metadata\tests
      copying libcst\metadata\tests\test_base_provider.py -> build\lib.win-amd64-cpython-311\libcst\metadata\tests
      copying libcst\metadata\tests\test_expression_context_provider.py -> build\lib.win-amd64-cpython-311\libcst\metadata\tests
      copying libcst\metadata\tests\test_full_repo_manager.py -> build\lib.win-amd64-cpython-311\libcst\metadata\tests
      copying libcst\metadata\tests\test_metadata_provider.py -> build\lib.win-amd64-cpython-311\libcst\metadata\tests
      copying libcst\metadata\tests\test_metadata_wrapper.py -> build\lib.win-amd64-cpython-311\libcst\metadata\tests
      copying libcst\metadata\tests\test_name_provider.py -> build\lib.win-amd64-cpython-311\libcst\metadata\tests
      copying libcst\metadata\tests\test_parent_node_provider.py -> build\lib.win-amd64-cpython-311\libcst\metadata\tests
      copying libcst\metadata\tests\test_position_provider.py -> build\lib.win-amd64-cpython-311\libcst\metadata\tests
      copying libcst\metadata\tests\test_reentrant_codegen.py -> build\lib.win-amd64-cpython-311\libcst\metadata\tests
      copying libcst\metadata\tests\test_scope_provider.py -> build\lib.win-amd64-cpython-311\libcst\metadata\tests
      copying libcst\metadata\tests\test_span_provider.py -> build\lib.win-amd64-cpython-311\libcst\metadata\tests
      copying libcst\metadata\tests\test_type_inference_provider.py -> build\lib.win-amd64-cpython-311\libcst\metadata\tests
      copying libcst\metadata\tests\__init__.py -> build\lib.win-amd64-cpython-311\libcst\metadata\tests
      creating build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\base.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_assert.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_assign.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_atom.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_attribute.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_await.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_binary_op.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_boolean_op.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_call.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_classdef.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_comment.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_comparison.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_cst_node.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_del.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_dict.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_dict_comp.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_docstring.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_else.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_empty_line.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_flatten_behavior.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_for.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_funcdef.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_global.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_if.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_ifexp.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_import.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_indented_block.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_lambda.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_leaf_small_statements.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_list.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_match.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_matrix_multiply.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_module.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_namedexpr.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_newline.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_nonlocal.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_number.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_raise.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_removal_behavior.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_return.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_set.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_simple_comp.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_simple_statement.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_simple_string.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_simple_whitespace.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_small_statement.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_subscript.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_trailing_whitespace.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_try.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_tuple.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_unary_op.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_while.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_with.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\test_yield.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      copying libcst\_nodes\tests\__init__.py -> build\lib.win-amd64-cpython-311\libcst\_nodes\tests
      creating build\lib.win-amd64-cpython-311\libcst\_parser\conversions
      copying libcst\_parser\conversions\expression.py -> build\lib.win-amd64-cpython-311\libcst\_parser\conversions
      copying libcst\_parser\conversions\module.py -> build\lib.win-amd64-cpython-311\libcst\_parser\conversions
      copying libcst\_parser\conversions\params.py -> build\lib.win-amd64-cpython-311\libcst\_parser\conversions
      copying libcst\_parser\conversions\statement.py -> build\lib.win-amd64-cpython-311\libcst\_parser\conversions
      copying libcst\_parser\conversions\terminals.py -> build\lib.win-amd64-cpython-311\libcst\_parser\conversions
      copying libcst\_parser\conversions\__init__.py -> build\lib.win-amd64-cpython-311\libcst\_parser\conversions
      creating build\lib.win-amd64-cpython-311\libcst\_parser\parso
      copying libcst\_parser\parso\utils.py -> build\lib.win-amd64-cpython-311\libcst\_parser\parso
      copying libcst\_parser\parso\__init__.py -> build\lib.win-amd64-cpython-311\libcst\_parser\parso
      creating build\lib.win-amd64-cpython-311\libcst\_parser\tests
      copying libcst\_parser\tests\test_config.py -> build\lib.win-amd64-cpython-311\libcst\_parser\tests
      copying libcst\_parser\tests\test_detect_config.py -> build\lib.win-amd64-cpython-311\libcst\_parser\tests
      copying libcst\_parser\tests\test_footer_behavior.py -> build\lib.win-amd64-cpython-311\libcst\_parser\tests
      copying libcst\_parser\tests\test_node_identity.py -> build\lib.win-amd64-cpython-311\libcst\_parser\tests
      copying libcst\_parser\tests\test_parse_errors.py -> build\lib.win-amd64-cpython-311\libcst\_parser\tests
      copying libcst\_parser\tests\test_version_compare.py -> build\lib.win-amd64-cpython-311\libcst\_parser\tests
      copying libcst\_parser\tests\test_whitespace_parser.py -> build\lib.win-amd64-cpython-311\libcst\_parser\tests
      copying libcst\_parser\tests\test_wrapped_tokenize.py -> build\lib.win-amd64-cpython-311\libcst\_parser\tests
      copying libcst\_parser\tests\__init__.py -> build\lib.win-amd64-cpython-311\libcst\_parser\tests
      creating build\lib.win-amd64-cpython-311\libcst\_parser\types
      copying libcst\_parser\types\config.py -> build\lib.win-amd64-cpython-311\libcst\_parser\types
      copying libcst\_parser\types\conversions.py -> build\lib.win-amd64-cpython-311\libcst\_parser\types
      copying libcst\_parser\types\partials.py -> build\lib.win-amd64-cpython-311\libcst\_parser\types
      copying libcst\_parser\types\production.py -> build\lib.win-amd64-cpython-311\libcst\_parser\types
      copying libcst\_parser\types\py_config.py -> build\lib.win-amd64-cpython-311\libcst\_parser\types
      copying libcst\_parser\types\py_token.py -> build\lib.win-amd64-cpython-311\libcst\_parser\types
      copying libcst\_parser\types\py_whitespace_state.py -> build\lib.win-amd64-cpython-311\libcst\_parser\types
      copying libcst\_parser\types\token.py -> build\lib.win-amd64-cpython-311\libcst\_parser\types
      copying libcst\_parser\types\whitespace_state.py -> build\lib.win-amd64-cpython-311\libcst\_parser\types
      copying libcst\_parser\types\__init__.py -> build\lib.win-amd64-cpython-311\libcst\_parser\types
      creating build\lib.win-amd64-cpython-311\libcst\_parser\parso\pgen2
      copying libcst\_parser\parso\pgen2\generator.py -> build\lib.win-amd64-cpython-311\libcst\_parser\parso\pgen2
      copying libcst\_parser\parso\pgen2\grammar_parser.py -> build\lib.win-amd64-cpython-311\libcst\_parser\parso\pgen2
      copying libcst\_parser\parso\pgen2\__init__.py -> build\lib.win-amd64-cpython-311\libcst\_parser\parso\pgen2
      creating build\lib.win-amd64-cpython-311\libcst\_parser\parso\python
      copying libcst\_parser\parso\python\py_token.py -> build\lib.win-amd64-cpython-311\libcst\_parser\parso\python
      copying libcst\_parser\parso\python\token.py -> build\lib.win-amd64-cpython-311\libcst\_parser\parso\python
      copying libcst\_parser\parso\python\tokenize.py -> build\lib.win-amd64-cpython-311\libcst\_parser\parso\python
      copying libcst\_parser\parso\python\__init__.py -> build\lib.win-amd64-cpython-311\libcst\_parser\parso\python
      creating build\lib.win-amd64-cpython-311\libcst\_parser\parso\tests
      copying libcst\_parser\parso\tests\test_fstring.py -> build\lib.win-amd64-cpython-311\libcst\_parser\parso\tests
      copying libcst\_parser\parso\tests\test_tokenize.py -> build\lib.win-amd64-cpython-311\libcst\_parser\parso\tests
      copying libcst\_parser\parso\tests\test_utils.py -> build\lib.win-amd64-cpython-311\libcst\_parser\parso\tests
      copying libcst\_parser\parso\tests\__init__.py -> build\lib.win-amd64-cpython-311\libcst\_parser\parso\tests
      creating build\lib.win-amd64-cpython-311\libcst\_parser\types\tests
      copying libcst\_parser\types\tests\test_config.py -> build\lib.win-amd64-cpython-311\libcst\_parser\types\tests
      copying libcst\_parser\types\tests\__init__.py -> build\lib.win-amd64-cpython-311\libcst\_parser\types\tests
      copying libcst\py.typed -> build\lib.win-amd64-cpython-311\libcst
      copying libcst\codemod\tests\codemod_formatter_error_input.py.txt -> build\lib.win-amd64-cpython-311\libcst\codemod\tests
      running build_ext
      running build_rust
      error: can't find Rust compiler
      If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.

      To update pip, run:

          pip install --upgrade pip

      and then retry package installation.

      If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
      [end of output]
      note: This error originates from a subprocess, and is likely not a problem with pip.
      ERROR: Failed building wheel for libcst
    ERROR: Could not build wheels for libcst, which is required to install pyproject.toml-based projects
Check the log at C:\Users\ramvi\.cache\pre-commit\pre-commit.log

Can you show your full output please?

@MarcoGorelli
Copy link
Member

Looks like an issue with autotyping, I'd suggest looking at their issues (or reporting if you can't find a solution) https://github.com/JelleZijlstra/autotyping

Anyway, for this issue, if you look at https://github.com/pandas-dev/pandas/actions/runs/3471395358/jobs/5800830394 it'll show you what the remaining issues are and what needs changing

@ramvikrams
Copy link
Contributor Author

Looks like an issue with autotyping, I'd suggest looking at their issues (or reporting if you can't find a solution) https://github.com/JelleZijlstra/autotyping

Anyway, for this issue, if you look at https://github.com/pandas-dev/pandas/actions/runs/3471395358/jobs/5800830394 it'll show you what the remaining issues are and what needs changing

yes sir

@ramvikrams
Copy link
Contributor Author

Looks like an issue with autotyping, I'd suggest looking at their issues (or reporting if you can't find a solution) https://github.com/JelleZijlstra/autotyping

Anyway, for this issue, if you look at https://github.com/pandas-dev/pandas/actions/runs/3471395358/jobs/5800830394 it'll show you what the remaining issues are and what needs changing

no such issure is reported there sir, should I write problem with autotyping and attach the output for reporting it.

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the

pandas/core/generic.py:9479:21: F402 import 'dt' from line 5 shadowed by loop variable

you can probably replace that dt with _dt as it's just a loop variable

@@ -142,6 +143,14 @@
from pandas.core.array_algos.replace import should_use_regex
from pandas.core.arrays import ExtensionArray
from pandas.core.base import PandasObject
from pandas.core.common import (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we'll need to add # noqa: PDF018 as a comment here, we can't use the com alias

@ramvikrams
Copy link
Contributor Author

For the

pandas/core/generic.py:9479:21: F402 import 'dt' from line 5 shadowed by loop variable

you can probably replace that dt with _dt as it's just a loop variable

yes

@@ -2,9 +2,8 @@
from __future__ import annotations

import collections
from datetime import timedelta
import datetime as _dt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep this one as dt it's

pandas/pandas/core/generic.py

Lines 9470 to 9472 in 1f6e44a

for dt in cond.dtypes:
if not is_bool_dtype(dt):
raise ValueError(msg.format(dtype=dt))

that needs changing to _dt

@@ -31,7 +30,10 @@

from pandas._config import config

from pandas._libs import lib
from pandas._libs import (
json,
Copy link
Member

@MarcoGorelli MarcoGorelli Nov 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are you importing json from here instead of import json? it's different

Comment on lines 5687 to 5696
rs = com.random_state(random_state)
rs = random_state(random_state)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now the random_state argument from this function shadows the random_state import

Might have to change the pandas.core.common import back to from pandas.core import common, but add the noqa command to that line to silence the flake8 warning of the missing as com alias

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done sir

@@ -130,10 +130,10 @@
notna,
)

from pandas.core import common # noqa: PDF018
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this, the next lines should be

from pandas.core import (
    algorithms as algos,
    arraylike,
    common,  # noqa: PDF018

Comment on lines 145 to 152
from pandas.core.common import ( # noqa: PDF018
apply_if_callable,
count_not_none,
get_rename_function,
index_labels_to_array,
maybe_make_list,
pipe,
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can remove these now

@@ -1009,7 +1017,7 @@ def _rename(
continue

ax = self._get_axis(axis_no)
f = com.get_rename_function(replacements)
f = get_rename_function(replacements)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will have to be common.get_rename_function (similarly for the others)

@@ -32,6 +31,7 @@
from pandas._config import config

from pandas._libs import lib
import json
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the imports are in the wrong order, if you run

pre-commit run black --files pandas/core/generic.py
pre-commit run isort --files pandas/core/generic.py
pre-commit run flake8 --files pandas/core/generic.py

before committing it should fix up most of the reported issues

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done sir, and ran these tests all of them passed

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ramvikrams for sticking with this, looks good now! 💪

@MarcoGorelli MarcoGorelli added the Code Style Code style, linting, code_checks label Nov 15, 2022
@MarcoGorelli MarcoGorelli added this to the 2.0 milestone Nov 15, 2022
@MarcoGorelli MarcoGorelli merged commit a970729 into pandas-dev:main Nov 15, 2022
@ramvikrams
Copy link
Contributor Author

All thanks to you sir for guiding me.

@ramvikrams ramvikrams deleted the t1 branch November 17, 2022 19:32
MarcoGorelli pushed a commit to MarcoGorelli/pandas that referenced this pull request Nov 18, 2022
…pandas-dev#49708)

* t1

* update

* update

* Update generic.py

* update

* Update generic.py

* Update generic.py

* Update generic.py

* Update generic.py

* Update generic.py

* Update generic.py

* Update generic.py
mliu08 pushed a commit to mliu08/pandas that referenced this pull request Nov 27, 2022
…pandas-dev#49708)

* t1

* update

* update

* Update generic.py

* update

* Update generic.py

* Update generic.py

* Update generic.py

* Update generic.py

* Update generic.py

* Update generic.py

* Update generic.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Style Code style, linting, code_checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants