Skip to content

Commit

Permalink
python 3.9 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
sneakers-the-rat committed Apr 23, 2024
1 parent fbc7d29 commit a345cc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ select = [
]
ignore = [
"ANN101", "ANN102", "ANN401", "ANN204",
# explicit strict arg for zip
"B905",
# builtin type annotations
"UP006", "UP035",
# | for Union types (only supported >=3.10
Expand Down
2 changes: 1 addition & 1 deletion src/numpydantic/ndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def list_of_lists_schema(shape: Shape, array_type_handler: dict) -> ListSchema:
shape_labels = reversed(split_parts)
shape_args = reversed(shape.prepared_args)
list_schema = None
for arg, label in zip(shape_args, shape_labels, strict=False):
for arg, label in zip(shape_args, shape_labels):
# which handler to use? for the first we use the actual type
# handler, everywhere else we use the prior list handler
inner_schema = array_type_handler if list_schema is None else list_schema
Expand Down

0 comments on commit a345cc6

Please sign in to comment.