Skip to content

Commit

Permalink
chore: fmt py
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvictor committed May 30, 2024
1 parent 64f7d11 commit dca9f93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion polars_pbv/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def pbv_topn_vp(
},
)


def pbv_topn_v(
price: IntoExpr,
volume: IntoExpr,
Expand All @@ -117,4 +118,4 @@ def pbv_topn_v(
"round": round,
"pct": pct,
},
)
)
2 changes: 1 addition & 1 deletion polars_pbv/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ def register_plugin(
is_elementwise=is_elementwise,
)


def parse_version(version: Sequence[str | int]) -> tuple[int, ...]:
# Simple version parser; split into a tuple of ints for comparison.
# vendored from Polars
if isinstance(version, str):
version = version.split(".")
return tuple(int(re.sub(r"\D", "", str(v))) for v in version)

0 comments on commit dca9f93

Please sign in to comment.