Authored by Fabian Krautgasser

argument checking using decorators

Have you ever wanted to just decorate the hell out of your functions and methods because you hated typing the same typechecks over and over again? Well, suffer no more, because we have a fabsolutely wonderful solution for you!

Edited 954 Bytes
  • Nice and useful, thanks for sharing! :)

    Obligatory reminder to only use type checks in Python if you really need to, e.g. when it would subtly break later and you don't want that or if the behaviour depends on a certain type being supplied. Otherwise: 🦆-type away… 😌

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment