fix(event): don't attempt to import exceptiongroup
if running python 3.11+
This commit is contained in:
parent
7d2c52bd6b
commit
f9623421c7
@ -3,9 +3,11 @@
|
||||
This module provides API for event management.
|
||||
"""
|
||||
|
||||
from sys import version_info
|
||||
from typing import Callable, Set, Type
|
||||
|
||||
from exceptiongroup import ExceptionGroup
|
||||
if version_info < (3, 11):
|
||||
from exceptiongroup import ExceptionGroup
|
||||
|
||||
from generic.registry import Registry, TypeAxis
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user