Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion awswrangler/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def chunkify(lst: List[Any], num_chunks: int = 1, max_length: Optional[int] = No
if not lst:
return []
n: int = num_chunks if max_length is None else int(math.ceil((float(len(lst)) / float(max_length))))
np_chunks = np.array_split(lst, n)
np_chunks = np.array_split(lst, n) # type: ignore
return [arr.tolist() for arr in np_chunks if len(arr) > 0]


Expand Down
2 changes: 1 addition & 1 deletion awswrangler/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def to_sql(
_db_utils.validate_mode(mode=mode, allowed_modes=allowed_modes)
_validate_connection(con=con)
try:
with con.cursor(cursor=cursorclass) as cursor:
with con.cursor(cursor=cursorclass) as cursor: # type: ignore
_create_table(
df=df,
cursor=cursor,
Expand Down
106 changes: 65 additions & 41 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@ python = ">=3.6.2, <3.11"

boto3 = "^1.20.17"
botocore = "^1.23.17"
# python_full_version instead of just python is needed until the changes
# from https://github.com/python-poetry/poetry-core/pull/180 are released
pandas = [
{ version = "~1.1.0", markers = "python_full_version ~= '3.6.2'" },
{ version = "^1.2.0", markers = "python_full_version >= '3.7.1' and python_full_version < '4.0.0'" },
]
numpy = "^1.18.0"
numpy = [
{ version = "~1.18.0", markers = "python_full_version ~= '3.6.2'" },
{ version = "^1.21.0", markers = "python_full_version >= '3.7.1' and python_full_version < '4.0.0'" },
]
pyarrow = ">=2.0.0, <6.1.0"
redshift-connector = "~2.0.889"
pymysql = ">=0.9.0, <1.1.0"
Expand Down Expand Up @@ -122,6 +123,7 @@ skip_gitignore = true
python_version = 3.7
strict = true
ignore_missing_imports = true
warn_unused_ignores = false

[tool.pytest.ini_options]
log_cli = false
Expand Down