Skip to content

Commit 9f326de

Browse files
authored
Merge pull request #156 from posit-dev/style-appease-linter
style: assign type to locations list
2 parents cee4986 + bef0c88 commit 9f326de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gt_extras/styling.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from typing import Literal
44

55
from great_tables import GT, loc, style
6+
from great_tables._locations import Loc
67
from great_tables._tbl_data import SelectExpr
78

89
__all__ = ["gt_add_divider"]
@@ -96,7 +97,7 @@ def gt_add_divider(
9697
```
9798
"""
9899

99-
locations = [loc.body(columns=columns)]
100+
locations: list[Loc] = [loc.body(columns=columns)]
100101

101102
if include_labels:
102103
locations.append(loc.column_labels(columns=columns))

0 commit comments

Comments
 (0)