Skip to content

Commit 85cb4c6

Browse files
Terji PetersenTerji Petersen
Terji Petersen
authored and
Terji Petersen
committed
remore unneeded line
1 parent bbf7ae5 commit 85cb4c6

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

.pre-commit-config.yaml

-24
Original file line numberDiff line numberDiff line change
@@ -60,30 +60,6 @@ repos:
6060
- flake8==5.0.4
6161
- flake8-bugbear==22.7.1
6262
- pandas-dev-flaker==0.5.0
63-
- repo: https://github.com/pycqa/pylint
64-
rev: v2.15.5
65-
hooks:
66-
- id: pylint
67-
stages: [manual]
68-
- repo: https://github.com/pycqa/pylint
69-
rev: v2.15.5
70-
hooks:
71-
- id: pylint
72-
alias: redefined-outer-name
73-
name: Redefining name from outer scope
74-
files: ^pandas/
75-
exclude: |
76-
(?x)
77-
^pandas/tests # keep excluded
78-
|/_testing/ # keep excluded
79-
|^pandas/util/_test_decorators\.py # keep excluded
80-
|^pandas/_version\.py # keep excluded
81-
|^pandas/conftest\.py # keep excluded
82-
|^pandas/core/tools/datetimes\.py
83-
|^pandas/io/formats/format\.py
84-
|^pandas/core/generic\.py
85-
args: [--disable=all, --enable=redefined-outer-name]
86-
stages: [manual]
8763
- repo: https://github.com/PyCQA/isort
8864
rev: 5.10.1
8965
hooks:

pandas/core/internals/construction.py

-1
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,6 @@ def _extract_index(data) -> Index:
623623
)
624624

625625
if have_series:
626-
assert index is not None # for mypy
627626
if lengths[0] != len(index):
628627
msg = (
629628
f"array length {lengths[0]} does not match index "

0 commit comments

Comments
 (0)