Skip to content

Commit

Permalink
chore(python): Remove unnecessary noqa's (#6035)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghuls committed Jan 4, 2023
1 parent 265a409 commit 78f3859
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion py-polars/polars/internals/dataframe/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,7 @@ def schema(self) -> dict[str, PolarsDataType]:
>>> df.schema
{'foo': Int64, 'bar': Float64, 'ham': Utf8}
""" # noqa: E501
"""
return dict(zip(self.columns, self.dtypes))

def _comp(self, other: Any, op: ComparisonOperator) -> DataFrame:
Expand Down
2 changes: 1 addition & 1 deletion py-polars/polars/internals/lazyframe/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def dtypes(self) -> list[type[DataType]]:
--------
schema : Returns a {colname:dtype} mapping.
""" # noqa: E501
"""
return self._ldf.dtypes()

@property
Expand Down
5 changes: 2 additions & 3 deletions py-polars/polars/internals/series/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -3471,8 +3471,7 @@ def apply(
skip_nulls: bool = True,
) -> Series:
"""
Apply a custom/user-defined function (UDF) over elements in this Series and
return a new Series.
Apply a custom/user-defined function (UDF) over elements in this Series and return a new Series.
If the function returns another datatype, the return_dtype arg should be set,
otherwise the method will fail.
Expand Down Expand Up @@ -3505,7 +3504,7 @@ def apply(
-------
Series
""" # noqa: D400,D205
""" # noqa: E501
if return_dtype is None:
pl_return_dtype = None
else:
Expand Down

0 comments on commit 78f3859

Please sign in to comment.