Best practice for own TypeChecker that overrides is_type #1408
Unanswered
sebastianw
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm trying to ignore type checking for a specific class instance that represents a Link in our YAML Schema. Right now I'm creating a new type checker, but to make it work as expected I have to create it with the "original" types taken from the private instance attribute
_type_checkers
of the original type checker.Is this the best way to override the
is_type
function of a TypeChecker? I didn't want to monkey patch the function in the original TypeChecker.Beta Was this translation helpful? Give feedback.
All reactions