pylint-bot / test

0 stars 0 forks source link

Add a positional_args attribute to Arguments nodes for mock ASTs #255

Open pylint-bot opened 8 years ago

pylint-bot commented 8 years ago

Originally reported by: BitBucket: ceridwenv, GitHub: @ceridwen?


It's not possible to create positional-only arguments in pure Python, but some builtin functions have them. This would make it possible to create accurate signatures for, e.g., the string methods.


pylint-bot commented 8 years ago

Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore?):


Maybe merge this with #215? This would be useful for being exported to pylint as well, since it can warn when arguments are passed by keyword argument, when that's not possible.