Skip to content

Commit

Permalink
Fixed typing error
Browse files Browse the repository at this point in the history
  • Loading branch information
vmagamedov committed Apr 18, 2024
1 parent c2298a6 commit 5780445
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions grpclib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from types import TracebackType
from typing import TYPE_CHECKING, Optional, Set, Type, ContextManager, List
from typing import Iterator, Collection, Callable, Any
from typing import Iterator, Collection, Callable, Any, cast
from functools import wraps
from contextlib import contextmanager

Expand Down Expand Up @@ -143,14 +143,14 @@ def _second_stage(sig_num: 'signal.Signals') -> None:


def _exit_handler(
sig_num: 'signal.Signals',
sig_num: int,
servers: Collection['IClosable'],
flag: List[bool],
) -> None:
if flag:
_second_stage(sig_num)
_second_stage(cast('signal.Signals', sig_num))
else:
_first_stage(sig_num, servers)
_first_stage(cast('signal.Signals', sig_num), servers)
flag.append(True)


Expand Down

0 comments on commit 5780445

Please sign in to comment.