Skip to content

Commit 8e7980d

Browse files
authored
Merge pull request #19 from rich-iannone/docs-selector-functions
feat: add `ColumnSelector` class and improve documentation for all column selector functions
2 parents 626d739 + 0fbb1f5 commit 8e7980d

File tree

5 files changed

+1358
-85
lines changed

5 files changed

+1358
-85
lines changed

pointblank/_utils_check_args.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from typing import Callable
44
from pointblank.thresholds import Thresholds
5-
from pointblank.column import Column
5+
from pointblank.column import Column, ColumnSelector
66

77

88
def _check_boolean_input(param: bool, param_name: str):
@@ -45,7 +45,7 @@ def _check_column(column: str | list[str]):
4545
raise ValueError("If a list is supplied to `column=` all elements must be strings.")
4646
return
4747

48-
if isinstance(column, Column):
48+
if isinstance(column, (Column, ColumnSelector)):
4949
return
5050

5151
if not isinstance(column, str):

0 commit comments

Comments
 (0)