Skip to content

How to also allow int args when annotating floats? #207

Answered by leycec
bariod asked this question in Q&A
Discussion options

You must be logged in to vote

@leycec has been summoned! Thanks a heap for pinging me on, @wesselb. Indeed, @beartype complies with almost all PEP standards... almost. @beartype even complies with super-bad PEP standards that everybody else tries hard to ignore like PEP 563 (i.e., from future import __annotations__). Even Guido can admit that PEP 563 really sucks. That's when you know a PEP standard is bad.

Occasionally, a subset of a PEP standard is so bad that @beartype quietly rejects that subset by default. When @beartype does this, @beartype also provides a configuration option allowing users to conditionally enable support for that rejected subset.

What I'm trying to say is...

@beartype Rejects the Implicit Nume…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by bariod
Comment options

You must be logged in to vote
1 reply
@bariod
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants