Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from inspect import Signature, Parameter
- parametors = [Parameter('x', Parameter.POSITIONAL_OR_KEYWORD),
- Parameter('y', Parameter.POSITIONAL_OR_KEYWORD, default=42),
- Parameter('z', Parameter.KEYWORD_ONLY, default=None)]
- firma = Signature(parametors)
- print(firma)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement