Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
123456789101112131415 |
- """pylint should detect yield and return mix inside generators"""
- # pylint: disable=using-constant-test, inconsistent-return-statements
- def somegen():
- """this is a bad generator"""
- if True:
- return 1
- else:
- yield 2
-
- def moregen():
- """this is another bad generator"""
- if True:
- yield 1
- else:
- return 2
|