Skip to content

Commit

Permalink
chore: comment formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dsgibbons committed Apr 6, 2024
1 parent deb1493 commit 11d388a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/patito/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ def _find_errors( # noqa: C901
if type(nested_schema) == _UnionGenericAlias:
nested_schema = nested_schema.__args__[0]

# We need to filter out any null rows, as the submodel won't
# know that all of a row's columns may be null
# We need to filter out any null rows as the submodel won't know
# that all of a row's columns may be null
dataframe = dataframe.filter(pl.col(column_name).is_not_null())
if dataframe.is_empty():
continue
Expand All @@ -301,8 +301,8 @@ def _find_errors( # noqa: C901
if type(nested_schema) == _UnionGenericAlias:
nested_schema = nested_schema.__args__[0]

# We need to filter out any null rows, as the submodel won't
# know that all of a row's columns may be null
# We need to filter out any null rows as the submodel won't know
# that all of a row's columns may be null
dataframe = dataframe.filter(pl.col(column_name).is_not_null())
if dataframe.is_empty():
continue
Expand Down

0 comments on commit 11d388a

Please sign in to comment.