Skip to content

Commit 932abf0

Browse files
committed
Remove unused line in discriminator
1 parent db1f6b4 commit 932abf0

File tree

1 file changed

+0
-3
lines changed
  • openapi_python_client/schema/openapi_schema_pydantic

1 file changed

+0
-3
lines changed

openapi_python_client/schema/openapi_schema_pydantic/reference.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from typing import Annotated, Any, Literal, TypeVar, Union
22

33
from pydantic import BaseModel, ConfigDict, Discriminator, Field, Tag
4-
from pydantic_core import ArgsKwargs
54
from typing_extensions import TypeAlias
65

76

@@ -36,8 +35,6 @@ class Reference(BaseModel):
3635
def _reference_discriminator(obj: Any) -> Literal["ref", "other"]:
3736
if isinstance(obj, dict):
3837
return "ref" if "$ref" in obj else "other"
39-
if isinstance(obj, ArgsKwargs):
40-
return "ref" if obj.kwargs and "ref" in obj.kwargs else "other"
4138
return "ref" if isinstance(obj, Reference) else "other"
4239

4340

0 commit comments

Comments
 (0)