Skip to content

Commit ad6f575

Browse files
[pre-commit.ci] Add auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 2d935c3 commit ad6f575

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cycquery/ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2884,7 +2884,7 @@ class RandomizeOrder(QueryOp):
28842884
--------
28852885
>>> RandomizeOrder()(table)
28862886
2887-
Warnings:
2887+
Warnings
28882888
--------
28892889
Becomes quite slow on large tables.
28902890

cycquery/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
def get_attr_name(name: str) -> str:
2828
"""Get attribute name (second part of first.second)."""
29-
return name.split(".")[-1]
29+
return name.rsplit(".", maxsplit=1)[-1]
3030

3131

3232
@dataclass

0 commit comments

Comments
 (0)