pylint-bot / astroid-unofficial

UNOFFICIAL playground for astroid github migration
GNU Lesser General Public License v2.1
0 stars 0 forks source link

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

Open pylint-bot opened 9 years ago

pylint-bot commented 9 years ago

Originally reported by: BitBucket: ceridwenv, GitHub: ceridwenv


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 9 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.