Open
Description
Hey @kracekumar,
Thanks for taking the time to reply to all my past queries. I'm a little stuck on 114 and was wondering if you could provide a hint or suggestion of sorts. I'm currently using overloaded method signatures for sock_type
in the following format:
@overload
def _sock_type(addr: Tuple[str,int])-> Union[TCPSocket,TCP6Socket]:...
@overload
def _sock_type(addr: Union[str, bytes])-> UnixSocket:...
def _sock_type(addr: Address):
<implementation details>
However, this solution still uses union and unfortunately it also means that sock_type in the line below is TCP Socket, TCP6Socket or Unix Socket whic produces the type error sock_type
is not callable.
sock = sock_type(address, conf, log)
Was wondering if you have any hints/suggestions/tips.
Let me know
Metadata
Metadata
Assignees
Labels
No labels