Skip to content

Commit

Permalink
TYP: Fix typechecking
Browse files Browse the repository at this point in the history
  • Loading branch information
has2k1 committed Nov 5, 2024
1 parent 1682dcb commit 5646c8d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plotnine/scales/scale_color.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ class scale_fill_cmap_d(scale_color_cmap_d):


@dataclass
class scale_color_datetime(scale_datetime, scale_color_cmap):
class scale_color_datetime(scale_datetime, scale_color_cmap): # pyright: ignore[reportIncompatibleVariableOverride]
"""
Datetime color scale
"""
Expand Down
4 changes: 2 additions & 2 deletions plotnine/scales/scale_xy.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ class scale_y_continuous(scale_position_continuous):

# Transformed scales
@dataclass(kw_only=True)
class scale_x_datetime(scale_datetime, scale_x_continuous):
class scale_x_datetime(scale_datetime, scale_x_continuous): # pyright: ignore[reportIncompatibleVariableOverride]
"""
Continuous x position for datetime data points
"""
Expand All @@ -276,7 +276,7 @@ class scale_x_datetime(scale_datetime, scale_x_continuous):


@dataclass(kw_only=True)
class scale_y_datetime(scale_datetime, scale_y_continuous):
class scale_y_datetime(scale_datetime, scale_y_continuous): # pyright: ignore[reportIncompatibleVariableOverride]
"""
Continuous y position for datetime data points
"""
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ dev = [
]

typing = [
"pyright==1.1.386",
"pyright==1.1.387",
"ipython",
"pandas-stubs",
]
Expand Down

0 comments on commit 5646c8d

Please sign in to comment.