We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa83319 commit 08c83e9Copy full SHA for 08c83e9
pandas/core/reshape/merge.py
@@ -1034,7 +1034,7 @@ def __init__(
1034
1035
def _validate_how(
1036
self, how: JoinHow | Literal["left_anti", "right_anti", "asof"]
1037
- ) -> tuple[JoinHow, bool]:
+ ) -> tuple[JoinHow | Literal["asof"], bool]:
1038
"""
1039
Validate the 'how' parameter and return the actual join type and whether
1040
this is an anti join.
@@ -1059,6 +1059,7 @@ def _validate_how(
1059
if how in {"left_anti", "right_anti"}:
1060
how = how.split("_")[0] # type: ignore[assignment]
1061
anti_join = True
1062
+ how = cast(JoinHow | Literal["asof"], how)
1063
return how, anti_join
1064
1065
def _maybe_require_matching_dtypes(
0 commit comments