Skip to content

Commit e0619cb

Browse files
authored
Upgrading dependencies (#1108)
* Upgrading dependencies * MyPy fixes * Reverting to python full version in pyproject
1 parent 2f16e61 commit e0619cb

File tree

4 files changed

+72
-46
lines changed

4 files changed

+72
-46
lines changed

awswrangler/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def chunkify(lst: List[Any], num_chunks: int = 1, max_length: Optional[int] = No
233233
if not lst:
234234
return []
235235
n: int = num_chunks if max_length is None else int(math.ceil((float(len(lst)) / float(max_length))))
236-
np_chunks = np.array_split(lst, n)
236+
np_chunks = np.array_split(lst, n) # type: ignore
237237
return [arr.tolist() for arr in np_chunks if len(arr) > 0]
238238

239239

awswrangler/mysql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ def to_sql(
374374
_db_utils.validate_mode(mode=mode, allowed_modes=allowed_modes)
375375
_validate_connection(con=con)
376376
try:
377-
with con.cursor(cursor=cursorclass) as cursor:
377+
with con.cursor(cursor=cursorclass) as cursor: # type: ignore
378378
_create_table(
379379
df=df,
380380
cursor=cursor,

poetry.lock

Lines changed: 65 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,14 @@ python = ">=3.6.2, <3.11"
3030

3131
boto3 = "^1.20.17"
3232
botocore = "^1.23.17"
33-
# python_full_version instead of just python is needed until the changes
34-
# from https://github.com/python-poetry/poetry-core/pull/180 are released
3533
pandas = [
3634
{ version = "~1.1.0", markers = "python_full_version ~= '3.6.2'" },
3735
{ version = "^1.2.0", markers = "python_full_version >= '3.7.1' and python_full_version < '4.0.0'" },
3836
]
39-
numpy = "^1.18.0"
37+
numpy = [
38+
{ version = "~1.18.0", markers = "python_full_version ~= '3.6.2'" },
39+
{ version = "^1.21.0", markers = "python_full_version >= '3.7.1' and python_full_version < '4.0.0'" },
40+
]
4041
pyarrow = ">=2.0.0, <6.1.0"
4142
redshift-connector = "~2.0.889"
4243
pymysql = ">=0.9.0, <1.1.0"
@@ -122,6 +123,7 @@ skip_gitignore = true
122123
python_version = 3.7
123124
strict = true
124125
ignore_missing_imports = true
126+
warn_unused_ignores = false
125127

126128
[tool.pytest.ini_options]
127129
log_cli = false

0 commit comments

Comments
 (0)