Skip to content

Commit

Permalink
fix(document): constructor overload (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
delgermurun authored Jan 23, 2022
1 parent 412930d commit d840d30
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions docarray/document/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import overload, Dict, Optional, List, TYPE_CHECKING, Union, Sequence
from typing import overload, Dict, Optional, List, TYPE_CHECKING, Sequence

from .data import DocumentData, default_values
from .data import DocumentData
from .mixins import AllMixins
from ..base import BaseDCType

Expand All @@ -24,15 +24,7 @@ def __init__(self, _obj: Optional['Document'] = None, copy: bool = False):
def __init__(
self,
_obj: Optional[Dict],
field_resolver: Optional[Dict[str, str]] = None,
unknown_fields_handler: str = 'catch',
):
...

@overload
def __init__(
self,
_obj: Optional[Dict],
copy: bool = False,
field_resolver: Optional[Dict[str, str]] = None,
unknown_fields_handler: str = 'catch',
):
Expand Down

0 comments on commit d840d30

Please sign in to comment.