Anton Agestam
Anton Agestam
Reported some details of the issue back on the typeguard repository: https://github.com/agronholm/typeguard/issues/465#issuecomment-2351651934.
@gaborbernat Is support for TypeAlias tracked somewhere else?
@akefirad This is just a matter of overriding the parse method in a subclass, but I see your point this could be explicitly documented. Let's keep this issue open to...
Hmm, looks like something unrelated broke sized types badly, will look at it as soon as I have some time.
> but I figured using assert_type is probably preferable Yup, it didn't exist back then, much better 👍 This is probably a good idea, although the circular dependency between the...
Found minimal reproduction of the test failures, it's not related so I am merging this as is. Thanks for the contribution! 🙏 https://github.com/antonagestam/phantom-types/issues/299
It looks like this also broke phantom-types. Minimal reproducible example, that works on 4.2.1 but breaks on 4.3.0. ```python import typeguard from typing import runtime_checkable, Sized, Iterable, Protocol, TypeVar T...
@agronholm Thanks for the continued work on improving this library 💪
👋 The requirements you mention in this thread, ie compatibility with both static and runtime checkers is exactly what cornered me into the design of phantom-types. I've written a blog...
@langfield The phantom type doesn't do anything magical to the function signature that it is used in, so it won't make any runtime errors happen for calls to the `greet`...