Skip to content

Commit

Permalink
add comment to explain TypeError change
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Gesel <paul.gesel@picknik.ai>
  • Loading branch information
pac48 committed Aug 2, 2024
1 parent 1a8322d commit 0760aac
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@
from jinja2 import Template, Environment
from typeguard import typechecked

# try to import TypeCheckError from typeguard. This was breaking and replaced TypeError in 3.0.0
try:
from typeguard import TypeCheckError
except:
except ImportError as e:
# otherwise, use the old TypeError
TypeCheckError = TypeError

from typing import Any, List, Union
Expand Down

0 comments on commit 0760aac

Please # to comment.