Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid syntax in function definition? #197

Closed
pylint-bot opened this issue Apr 21, 2014 · 3 comments
Closed

Invalid syntax in function definition? #197

pylint-bot opened this issue Apr 21, 2014 · 3 comments
Labels
Bug 🪲 Checkers Related to a checker

Comments

@pylint-bot
Copy link

Originally reported by: BitBucket: Chiel92, GitHub: @Chiel92?


The following function definition gives an "invalid syntax" message from pylint, while this is valid afaik. It runs as intended.

#!python

def compose(*subactions, name='', docs=''):
    pass

Here is some version info:

#!bash

$ pylint --version
No config file found, using default configuration
pylint 1.1.0, 
astroid 1.0.1, common 0.61.0
Python 3.3.5 (default, Mar 12 2014, 02:04:59) 
[GCC 4.6.3]

@pylint-bot
Copy link
Author

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


I can't reproduce using:

#!python

__main__.py 1.2.0,
astroid 1.1.0, common 0.61.0
Python 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:24:06) [MSC v.1600 32 bit (Intel)]

Could you provide more details?

@pylint-bot
Copy link
Author

Original comment by BitBucket: Chiel92, GitHub: @Chiel92?:


I use vim along with syntastic to have in-editor error checking. Just discovered that when I run pylint from commandline I don't get the error either. I guess I should report this to the syntastic dev then.

Thanks for your reply!

@pylint-bot
Copy link
Author

Original comment by Sylvain Thénault (BitBucket: sthenault, GitHub: @sthenault?):


this is much probably because vim uses python2 version of pylint

@pylint-bot pylint-bot added Bug 🪲 Checkers Related to a checker labels Dec 9, 2015
msuozzo pushed a commit to msuozzo/pylint that referenced this issue Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🪲 Checkers Related to a checker
Projects
None yet
Development

No branches or pull requests

1 participant