agronholm/typeguard
View on GitHub ↗ ★ 1,793 Python
Run-time type checker for Python
8 mentions on Hacker News by 8 people: 0 stories, 8 comments · first 2017-11-05 · latest 2026-02-25
20082026
-
…2) runtime and buildtime typing use the same semantics and syntax, so you don't need band-aids like https://github.com/agronholm/typeguard But yeah, CL's type system is lacking in many places. In order of practical advantages and…
comment by a-french-anon · 2026-02-25 · in Steel Bank Common Lisp -
I think TypeGuard ( https://github.com/agronholm/typeguard ) also does runtime type checking. I use beartype BTW.
comment by N1H1L · 2025-01-29 · in "We're building a new static type checker for Python" -
…programming (JAX or not), then jaxtyping [3]. [1] https://github.com/beartype/beartype/ [2] https://github.com/agronholm/typeguard [3] https://github.com/patrick-kidger/jaxtyping
comment by patrickkidger · 2024-11-27 · in Python type hints may not be not for me in practice -
…the test suite, you get a failing test whenever an actual type differs from an annotated type. [0]: https://github.com/agronholm/typeguard/ [1]: https://typeguard.readthedocs.io/en/latest/userguide.html#us...
comment by spappal · 2022-12-21 · in Boring Python: Code quality -
…is an explicit decision, not an unwanted shortcoming. [0] https://github.com/RussBaz/enforce [1] https://github.com/agronholm/typeguard [2] https://github.com/microsoft/pyright [3] https://pydantic-docs.helpmanual.io [4]…
comment by davidatbu · 2022-04-22 · in Python’s “type hints” are a bit of a disappointment to me -
…can do runtime checking for important parts of your app or you can use this https://github.com/agronholm/typeguard to enforce all types at runtime (although I haven't measured the performance impact, probably something to do in a sepa
comment by inertiatic · 2021-10-18 · in Tests aren’t enough: Case study after adding type hints to urllib3 -
…both look at type annotations and enforce them at runtime. ¹ https://github.com/Stewori/pytypes/ ² https://github.com/agronholm/typeguard
comment by uryga · 2019-05-15 · in Things to use in Python 3 -
Check out typeguard: https://github.com/agronholm/typeguard it offers run-time type checking in a variety of ways, is intuitive, and actively maintained
comment by Dowwie · 2017-11-05 · in Show HN: PySchemes – A library for validating data structures in Python