Skip to content

Commit

Permalink
Merge pull request #36 from ni/fix_get_registered_events_type_hint
Browse files Browse the repository at this point in the history
Fix get_registered_events type hint for Python 3.9 and below.
  • Loading branch information
ccaltagi authored Oct 18, 2023
2 parents 446fd90 + 5991902 commit 3c41ba3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flexlogger/automation/_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from concurrent.futures import ThreadPoolExecutor
from google.protobuf.timestamp_pb2 import Timestamp
from grpc import Channel, RpcError
from typing import Callable, Iterator
from typing import Callable, Iterator, List


class FlexLoggerEventHandler:
Expand Down Expand Up @@ -41,7 +41,7 @@ def __enter__(self):
def __exit__(self, *args):
self.unregister_from_events()

def get_registered_events(self) -> list[EventType]:
def get_registered_events(self) -> List[EventType]:
"""Gets the list of registered event types.
Returns
Expand Down

0 comments on commit 3c41ba3

Please sign in to comment.