ArneBachmannDLR
ArneBachmannDLR
Thanks for the elaborate support! I tried your first approach, but it got stuck with an `AttributeError`. I then implemented a handler that collects the emitted records and allows checking...
Thanks again. I think the trick you gave me here is initiating the handler *outside* the doctests, which means there is a finalized instance available to all tests and no...
*system-under-test*. Yes, I think if it works with doctest, it should work with xdoctest, but the type of incovation is different, as I don't run from command line, but from...
Not entirely wrong, but I see `strictyaml` more as a schema-validatable YAML subset, not a drop-in replacement for anything else. I also find it a bit hard to find documentation...
Same as `frozenset`, `tuple`, `dict`.
So how do I specify a (optional) `null` in the schema so that I get a `None`? I thought about using `Optional('a', None): Str()` but it still returns `"null"`. `EmptyNone()`...
Here is my workaround: ```python from strictyaml.scalar import ScalarValidator class None_(ScalarValidator): ''' Validator for strictyaml schemas expecting a None. ''' def validate_scalar(_, chunk): if chunk.contents == 'null': return None chunk.expecting_but_found("when...
I think it would be useful to define a value to be optionally None (YAML's `null`). The problem is that `None` is already taken in Python, so that `None()` is...
Here is my example, hoping for a solution some day (I can turn off beartype in the script, as it is only for testing): ```python3 @dataclasses.dataclass(frozen=True) class FileInformation: ''' Per-file...
You're awesome! Thanks