52d75b58223cbd88f09701e1755726d953ed42ce,bears/python/MypyBear.py,MypyBear,create_arguments,#MypyBear#,108

Before Change


            Set the specific Python version, e.g. ``3.5``.
        
        args = ["-m", "mypy"]
        if language.lower() == "python 2":
            args.append("--py2")
        elif language.lower() not in ("python 3", "python"):
            // Ideally, this would fail the check, but there"s no good

After Change


            Set the specific Python version, e.g. ``3.5``.
        
        args = ["-m", "mypy"]
        if "python 2" in language:
            args.append("--py2")
        elif "python 3" not in language:
            // Ideally, this would fail the check, but there"s no good
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: coala/coala-bears
Commit Name: 52d75b58223cbd88f09701e1755726d953ed42ce
Time: 2017-08-28
Author: adhika.setyap@gmail.com
File Name: bears/python/MypyBear.py
Class Name: MypyBear
Method Name: create_arguments


Project Name: ilastik/ilastik
Commit Name: 5ee3708f842d739d6effe24fbb0464c40e1a330d
Time: 2019-07-12
Author: tomaz.vieira@embl.de
File Name: ilastik/applets/dataSelection/opDataSelection.py
Class Name: DatasetInfo
Method Name: pathIsN5


Project Name: ilastik/ilastik
Commit Name: 5ee3708f842d739d6effe24fbb0464c40e1a330d
Time: 2019-07-12
Author: tomaz.vieira@embl.de
File Name: ilastik/applets/dataSelection/opDataSelection.py
Class Name: DatasetInfo
Method Name: pathIsHdf5