Merge pull request #525 from actionless/patch-1

fix(event): don't attempt to import `exceptiongroup` if running python 3.11+
This commit is contained in:
Dan Yeaw 2024-07-01 19:40:03 -04:00 committed by GitHub
commit 378009e292
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -1,9 +1,11 @@
from __future__ import annotations
from sys import version_info
from typing import Callable
import pytest
from exceptiongroup import ExceptionGroup
if version_info < (3, 11):
from exceptiongroup import ExceptionGroup
from generic.event import Event, Manager