fname stringlengths 63 176 | rel_fname stringclasses 706
values | line int64 -1 4.5k | name stringlengths 1 81 | kind stringclasses 2
values | category stringclasses 2
values | info stringlengths 0 77.9k ⌀ |
|---|---|---|---|---|---|---|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/bump_changelog.py | script/bump_changelog.py | 109 | get_version_type | ref | function | version_type = get_version_type(version)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/bump_changelog.py | script/bump_changelog.py | 110 | get_next_version | ref | function | next_version = get_next_version(version, version_type)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/bump_changelog.py | script/bump_changelog.py | 111 | get_whats_new | ref | function | old_date = get_whats_new(version, add_date=True)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/bump_changelog.py | script/bump_changelog.py | 112 | get_whats_new | ref | function | new_date = get_whats_new(version, add_date=True, change_date=True)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/bump_changelog.py | script/bump_changelog.py | 113 | get_all_whats_new | ref | function | next_version_with_date = get_all_whats_new(version, version_type)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/bump_changelog.py | script/bump_changelog.py | 114 | do_checks | ref | function | do_checks(content, next_version, version, version_type)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/bump_changelog.py | script/bump_changelog.py | 125 | do_checks | def | function | def do_checks(content, next_version, version, version_type):
err = "in the changelog, fix that first!"
NEW_VERSION_ERROR_MSG = (
# pylint: disable-next=consider-using-f-string
"The text for this version '{version}' did not exists %s"
% err
)
NEXT_VERSION_ERROR_MSG = (
# pylint: disable-next=consider-using-f-string
"The text for the next version '{version}' already exists %s"
% err
)
wn_next_version = get_whats_new(next_version)
wn_this_version = get_whats_new(version)
# There is only one field where the release date is TBA
if version_type in [VersionType.MAJOR, VersionType.MINOR]:
assert (
content.count(RELEASE_DATE_TEXT) <= 1
), f"There should be only one release date 'TBA' ({version}) {err}"
else:
next_minor_version = get_next_version(version, VersionType.MINOR)
assert (
content.count(RELEASE_DATE_TEXT) <= 2
), f"There should be only two release dates 'TBA' ({version} and {next_minor_version}) {err}"
# There is already a release note for the version we want to release
assert content.count(wn_this_version) == 1, NEW_VERSION_ERROR_MSG.format(
version=version
)
# There is no release notes for the next version
assert content.count(wn_next_version) == 0, NEXT_VERSION_ERROR_MSG.format(
version=next_version
)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/bump_changelog.py | script/bump_changelog.py | 137 | get_whats_new | ref | function | wn_next_version = get_whats_new(next_version)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/bump_changelog.py | script/bump_changelog.py | 138 | get_whats_new | ref | function | wn_this_version = get_whats_new(version)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/bump_changelog.py | script/bump_changelog.py | 145 | get_next_version | ref | function | next_minor_version = get_next_version(version, VersionType.MINOR)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/bump_changelog.py | script/bump_changelog.py | 160 | main | ref | function | main()
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/fix_documentation.py | script/fix_documentation.py | 14 | fix_inline_code_blocks | def | function | def fix_inline_code_blocks(file_content: str) -> str:
"""Use double quotes for code blocks. RST style.
Example:
`hello-world` -> ``hello-world``
"""
pattern = re.compile(INVALID_CODE_BLOCK_PATTERN)
return pattern.sub(r"`\g<0>`", file_content)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/fix_documentation.py | script/fix_documentation.py | 24 | changelog_insert_empty_lines | def | function | def changelog_insert_empty_lines(file_content: str, subtitle_text: str) -> str:
"""Insert up to two empty lines before `What's New` entry in ChangeLog."""
lines = file_content.split("\n")
subtitle_count = 0
for i, line in enumerate(lines):
if line.startswith(subtitle_text):
subtitle_count += 1
if (
subtitle_count == 1
or i < 2
or lines[i - 1] == ""
and lines[i - 2] == ""
):
continue
lines.insert(i, "")
return "\n".join(lines)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/fix_documentation.py | script/fix_documentation.py | 42 | CustomHelpFormatter | def | class | __init__ |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/fix_documentation.py | script/fix_documentation.py | 59 | main | def | function | def main(argv: Union[List[str], None] = None) -> int:
argv = argv or sys.argv[1:]
parser = argparse.ArgumentParser(formatter_class=CustomHelpFormatter)
parser.add_argument(
"--changelog",
metavar="file",
default=DEFAULT_CHANGELOG,
help="Changelog filename (default: '%(default)s')",
)
parser.add_argument(
"--subtitle-prefix",
metavar="prefix",
default=DEFAULT_SUBTITLE_PREFIX,
help="Subtitle prefix (default: '%(default)s')",
)
parser.add_argument(
"filenames",
nargs="*",
metavar="FILES",
help="File names to modify",
)
args = parser.parse_args(argv)
return_value: int = 0
for file_name in args.filenames:
with open(file_name, encoding="utf-8") as fp:
original_content = fp.read()
content = original_content
# Modify files
content = fix_inline_code_blocks(content)
if file_name == args.changelog:
content = changelog_insert_empty_lines(content, args.subtitle_prefix)
# If modified, write changes and eventually return 1
if original_content != content:
with open(file_name, "w", encoding="utf-8") as fp:
fp.write(content)
return_value |= 1
return return_value
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/fix_documentation.py | script/fix_documentation.py | 62 | add_argument | ref | function | parser.add_argument(
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/fix_documentation.py | script/fix_documentation.py | 68 | add_argument | ref | function | parser.add_argument(
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/fix_documentation.py | script/fix_documentation.py | 74 | add_argument | ref | function | parser.add_argument(
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/fix_documentation.py | script/fix_documentation.py | 80 | parse_args | ref | function | args = parser.parse_args(argv)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/fix_documentation.py | script/fix_documentation.py | 85 | read | ref | function | original_content = fp.read()
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/fix_documentation.py | script/fix_documentation.py | 88 | fix_inline_code_blocks | ref | function | content = fix_inline_code_blocks(content)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/fix_documentation.py | script/fix_documentation.py | 90 | changelog_insert_empty_lines | ref | function | content = changelog_insert_empty_lines(content, args.subtitle_prefix)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/fix_documentation.py | script/fix_documentation.py | 94 | write | ref | function | fp.write(content)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/fix_documentation.py | script/fix_documentation.py | 100 | main | ref | function | sys.exit(main())
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/get_unused_message_id_category.py | script/get_unused_message_id_category.py | 12 | register_all_checkers_and_plugins | def | function | def register_all_checkers_and_plugins(linter: "PyLinter") -> None:
"""Registers all checkers and plugins."""
linter.cmdline_parser.set_conflict_handler("resolve")
initialize_checkers(linter)
initialize_extensions(linter)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/get_unused_message_id_category.py | script/get_unused_message_id_category.py | 14 | set_conflict_handler | ref | function | linter.cmdline_parser.set_conflict_handler("resolve")
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/get_unused_message_id_category.py | script/get_unused_message_id_category.py | 15 | initialize_checkers | ref | function | initialize_checkers(linter)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/get_unused_message_id_category.py | script/get_unused_message_id_category.py | 16 | initialize_extensions | ref | function | initialize_extensions(linter)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/get_unused_message_id_category.py | script/get_unused_message_id_category.py | 19 | get_next_code_category | def | function | def get_next_code_category(message_ids: List[str]) -> int:
categories = sorted({int(i[:2]) for i in message_ids})
# We add the prefixes for deleted checkers
categories += DELETED_MSGID_PREFIXES
for i in categories:
if i + 1 not in categories:
return i + 1
return categories[-1] + 1
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/get_unused_message_id_category.py | script/get_unused_message_id_category.py | 30 | PyLinter | ref | function | pylinter = PyLinter()
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/get_unused_message_id_category.py | script/get_unused_message_id_category.py | 31 | register_all_checkers_and_plugins | ref | function | register_all_checkers_and_plugins(pylinter)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/script/get_unused_message_id_category.py | script/get_unused_message_id_category.py | 33 | get_next_code_category | ref | function | next_category = get_next_code_category(messages)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/conf.py | doc/conf.py | 29 | abspath | ref | function | sys.path.append(os.path.abspath("exts"))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-class-instantiated/bad.py | doc/data/messages/a/abstract-class-instantiated/bad.py | 3 | Animal | def | class | make_sound |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-class-instantiated/bad.py | doc/data/messages/a/abstract-class-instantiated/bad.py | 5 | make_sound | def | function | def make_sound(self):
pass
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-class-instantiated/bad.py | doc/data/messages/a/abstract-class-instantiated/bad.py | 9 | Animal | ref | class | make_sound |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-class-instantiated/good.py | doc/data/messages/a/abstract-class-instantiated/good.py | 3 | Animal | def | class | make_sound |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-class-instantiated/good.py | doc/data/messages/a/abstract-class-instantiated/good.py | 5 | make_sound | def | function | def make_sound(self):
pass
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-class-instantiated/good.py | doc/data/messages/a/abstract-class-instantiated/good.py | 9 | Sheep | def | class | make_sound |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-class-instantiated/good.py | doc/data/messages/a/abstract-class-instantiated/good.py | 10 | make_sound | def | function | def make_sound(self):
pass
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-class-instantiated/good.py | doc/data/messages/a/abstract-class-instantiated/good.py | 14 | Sheep | ref | function | sheep = Sheep()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/bad.py | doc/data/messages/a/abstract-method/bad.py | 0 | Pet | def | class | make_sound |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/bad.py | doc/data/messages/a/abstract-method/bad.py | 1 | make_sound | def | function | def make_sound(self):
raise NotImplementedError
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/bad.py | doc/data/messages/a/abstract-method/bad.py | 5 | Cat | def | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/bad.py | doc/data/messages/a/abstract-method/bad.py | 12 | WildAnimal | def | class | make_sound |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/bad.py | doc/data/messages/a/abstract-method/bad.py | 14 | make_sound | def | function | def make_sound(self):
raise NotImplementedError
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/bad.py | doc/data/messages/a/abstract-method/bad.py | 18 | Panther | def | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/bad.py | doc/data/messages/a/abstract-method/bad.py | -1 | Pet | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/bad.py | doc/data/messages/a/abstract-method/bad.py | -1 | make_sound | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/bad.py | doc/data/messages/a/abstract-method/bad.py | -1 | self | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/bad.py | doc/data/messages/a/abstract-method/bad.py | -1 | NotImplementedError | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/bad.py | doc/data/messages/a/abstract-method/bad.py | -1 | Cat | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/bad.py | doc/data/messages/a/abstract-method/bad.py | -1 | Pet | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/bad.py | doc/data/messages/a/abstract-method/bad.py | -1 | abc | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/bad.py | doc/data/messages/a/abstract-method/bad.py | -1 | WildAnimal | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/bad.py | doc/data/messages/a/abstract-method/bad.py | -1 | @abc | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/bad.py | doc/data/messages/a/abstract-method/bad.py | -1 | abstractmethod | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/bad.py | doc/data/messages/a/abstract-method/bad.py | -1 | make_sound | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/bad.py | doc/data/messages/a/abstract-method/bad.py | -1 | self | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/bad.py | doc/data/messages/a/abstract-method/bad.py | -1 | Panther | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/bad.py | doc/data/messages/a/abstract-method/bad.py | -1 | WildAnimal | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/good.py | doc/data/messages/a/abstract-method/good.py | 0 | Pet | def | class | make_sound |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/good.py | doc/data/messages/a/abstract-method/good.py | 1 | make_sound | def | function | def make_sound(self):
raise NotImplementedError
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/good.py | doc/data/messages/a/abstract-method/good.py | 5 | Cat | def | class | make_sound |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/good.py | doc/data/messages/a/abstract-method/good.py | 6 | make_sound | def | function | def make_sound(self):
raise NotImplementedError
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/good.py | doc/data/messages/a/abstract-method/good.py | 13 | WildAnimal | def | class | make_sound |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/good.py | doc/data/messages/a/abstract-method/good.py | 15 | make_sound | def | function | def make_sound(self):
raise NotImplementedError
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/good.py | doc/data/messages/a/abstract-method/good.py | 19 | Panther | def | class | make_sound |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/abstract-method/good.py | doc/data/messages/a/abstract-method/good.py | 20 | make_sound | def | function | def make_sound(self):
raise NotImplementedError
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/access-member-before-definition/bad.py | doc/data/messages/a/access-member-before-definition/bad.py | 0 | Foo | def | class | __init__ |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/access-member-before-definition/bad.py | doc/data/messages/a/access-member-before-definition/bad.py | -1 | Foo | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/access-member-before-definition/bad.py | doc/data/messages/a/access-member-before-definition/bad.py | -1 | __init__ | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/access-member-before-definition/bad.py | doc/data/messages/a/access-member-before-definition/bad.py | -1 | self | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/access-member-before-definition/bad.py | doc/data/messages/a/access-member-before-definition/bad.py | -1 | param | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/access-member-before-definition/bad.py | doc/data/messages/a/access-member-before-definition/bad.py | -1 | self | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/access-member-before-definition/bad.py | doc/data/messages/a/access-member-before-definition/bad.py | -1 | param | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/access-member-before-definition/bad.py | doc/data/messages/a/access-member-before-definition/bad.py | -1 | self | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/access-member-before-definition/bad.py | doc/data/messages/a/access-member-before-definition/bad.py | -1 | param | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/access-member-before-definition/bad.py | doc/data/messages/a/access-member-before-definition/bad.py | -1 | param | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/access-member-before-definition/good.py | doc/data/messages/a/access-member-before-definition/good.py | 0 | Foo | def | class | __init__ |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/access-member-before-definition/good.py | doc/data/messages/a/access-member-before-definition/good.py | -1 | Foo | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/access-member-before-definition/good.py | doc/data/messages/a/access-member-before-definition/good.py | -1 | __init__ | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/access-member-before-definition/good.py | doc/data/messages/a/access-member-before-definition/good.py | -1 | self | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/access-member-before-definition/good.py | doc/data/messages/a/access-member-before-definition/good.py | -1 | param | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/access-member-before-definition/good.py | doc/data/messages/a/access-member-before-definition/good.py | -1 | self | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/access-member-before-definition/good.py | doc/data/messages/a/access-member-before-definition/good.py | -1 | param | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/access-member-before-definition/good.py | doc/data/messages/a/access-member-before-definition/good.py | -1 | param | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/access-member-before-definition/good.py | doc/data/messages/a/access-member-before-definition/good.py | -1 | self | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/access-member-before-definition/good.py | doc/data/messages/a/access-member-before-definition/good.py | -1 | param | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/arguments-differ/bad.py | doc/data/messages/a/arguments-differ/bad.py | 0 | Drink | def | class | mix |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/arguments-differ/bad.py | doc/data/messages/a/arguments-differ/bad.py | 1 | mix | def | function | def mix(self, fluid_one, fluid_two):
return fluid_one + fluid_two
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/arguments-differ/bad.py | doc/data/messages/a/arguments-differ/bad.py | 5 | Cocktail | def | class | mix |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/arguments-differ/bad.py | doc/data/messages/a/arguments-differ/bad.py | 6 | mix | def | function | def mix(self, fluid_one, fluid_two, alcoholic_fluid_one): # [arguments-differ]
return fluid_one + fluid_two + alcoholic_fluid_one
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/arguments-differ/bad.py | doc/data/messages/a/arguments-differ/bad.py | 10 | Car | def | class | fill_tank |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/arguments-differ/bad.py | doc/data/messages/a/arguments-differ/bad.py | 13 | fill_tank | def | function | def fill_tank(self, gas):
self.tank += gas
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/arguments-differ/bad.py | doc/data/messages/a/arguments-differ/bad.py | 17 | Airplane | def | class | fill_tank |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/arguments-differ/bad.py | doc/data/messages/a/arguments-differ/bad.py | 20 | fill_tank | def | function | def fill_tank(self, gas, kerosene): # [arguments-differ]
self.tank += gas
self.kerosene_tank += kerosene
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/arguments-differ/bad.py | doc/data/messages/a/arguments-differ/bad.py | -1 | Drink | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/arguments-differ/bad.py | doc/data/messages/a/arguments-differ/bad.py | -1 | mix | ref | function | none |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/a/arguments-differ/bad.py | doc/data/messages/a/arguments-differ/bad.py | -1 | self | ref | function | none |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.