SYMBOL INDEX (185 symbols across 23 files) FILE: docs/advanced/coerce.py function coerce (line 20) | def coerce(version: str) -> Tuple[Version, Optional[str]]: FILE: docs/advanced/semverwithvprefix.py class SemVerWithVPrefix (line 4) | class SemVerWithVPrefix(Version): method parse (line 10) | def parse(cls, version: str) -> "SemVerWithVPrefix": method __str__ (line 25) | def __str__(self) -> str: FILE: docs/conf.py function find_version (line 28) | def find_version(path: Path) -> str: FILE: src/semver/__main__.py function main (line 20) | def main(cliargs: Optional[List[str]] = None) -> int: FILE: src/semver/_deprecated.py function deprecated (line 18) | def deprecated( function compare (line 91) | def compare(ver1: str, ver2: str) -> int: function parse (line 117) | def parse(version): function parse_version_info (line 146) | def parse_version_info(version): function match (line 174) | def match(version, match_expr): function max_ver (line 202) | def max_ver(ver1, ver2): function min_ver (line 221) | def min_ver(ver1, ver2): function format_version (line 240) | def format_version(major, minor, patch, prerelease=None, build=None): function bump_major (line 262) | def bump_major(version): function bump_minor (line 280) | def bump_minor(version): function bump_patch (line 298) | def bump_patch(version): function bump_prerelease (line 316) | def bump_prerelease(version, token="rc"): function bump_build (line 335) | def bump_build(version, token="build"): function finalize_version (line 354) | def finalize_version(version): function replace (line 376) | def replace(version, **parts): FILE: src/semver/cli.py function cmd_bump (line 21) | def cmd_bump(args: argparse.Namespace) -> str: function cmd_check (line 49) | def cmd_check(args: argparse.Namespace) -> None: function cmd_compare (line 62) | def cmd_compare(args: argparse.Namespace) -> str: function cmd_nextver (line 74) | def cmd_nextver(args: argparse.Namespace) -> str: function createparser (line 86) | def createparser() -> argparse.ArgumentParser: function process (line 139) | def process(args: argparse.Namespace) -> str: function main (line 155) | def main(cliargs: Optional[List[str]] = None) -> int: FILE: src/semver/version.py function _comparator (line 38) | def _comparator(operator: Comparator) -> Comparator: function _cmp (line 57) | def _cmp(a: T_cmp, b: T_cmp) -> int: class Version (line 62) | class Version: method __init__ (line 119) | def __init__( method _nat_cmp (line 143) | def _nat_cmp(cls, a: Optional[str], b: Optional[str]) -> int: method major (line 165) | def major(self) -> int: method major (line 170) | def major(self, value): method minor (line 174) | def minor(self) -> int: method minor (line 179) | def minor(self, value): method patch (line 183) | def patch(self) -> int: method patch (line 188) | def patch(self, value): method prerelease (line 192) | def prerelease(self) -> Optional[str]: method prerelease (line 197) | def prerelease(self, value): method build (line 201) | def build(self) -> Optional[str]: method build (line 206) | def build(self, value): method to_tuple (line 209) | def to_tuple(self) -> VersionTuple: method to_dict (line 224) | def to_dict(self) -> VersionDict: method __iter__ (line 246) | def __iter__(self) -> VersionIterator: method _increment_prerelease (line 251) | def _increment_prerelease(string: str) -> str: method _increment_string (line 268) | def _increment_string(string: str) -> str: method bump_major (line 285) | def bump_major(self) -> "Version": method bump_minor (line 299) | def bump_minor(self) -> "Version": method bump_patch (line 313) | def bump_patch(self) -> "Version": method bump_prerelease (line 327) | def bump_prerelease( method bump_build (line 374) | def bump_build(self, token: Optional[str] = "build") -> "Version": method compare (line 401) | def compare(self, other: Comparable) -> int: method next_version (line 447) | def next_version(self, part: str, prerelease_token: str = "rc") -> "Ve... method __eq__ (line 488) | def __eq__(self, other: Comparable) -> bool: # type: ignore method __ne__ (line 492) | def __ne__(self, other: Comparable) -> bool: # type: ignore method __lt__ (line 496) | def __lt__(self, other: Comparable) -> bool: method __le__ (line 500) | def __le__(self, other: Comparable) -> bool: method __gt__ (line 504) | def __gt__(self, other: Comparable) -> bool: method __ge__ (line 508) | def __ge__(self, other: Comparable) -> bool: method __getitem__ (line 511) | def __getitem__( method __repr__ (line 551) | def __repr__(self) -> str: method __str__ (line 555) | def __str__(self) -> str: method __hash__ (line 563) | def __hash__(self) -> int: method finalize_version (line 566) | def finalize_version(self) -> "Version": method match (line 578) | def match(self, match_expr: str) -> bool: method parse (line 630) | def parse( method replace (line 676) | def replace(self, **parts: Union[int, Optional[str]]) -> "Version": method is_valid (line 703) | def is_valid(cls, version: str) -> bool: method is_compatible (line 722) | def is_compatible(self, other: "Version") -> bool: FILE: tests/conftest.py function add_semver (line 13) | def add_semver(doctest_namespace): function version (line 22) | def version(): FILE: tests/test_bump.py function test_should_bump_major (line 14) | def test_should_bump_major(): function test_should_bump_minor (line 18) | def test_should_bump_minor(): function test_should_bump_patch (line 22) | def test_should_bump_patch(): function test_should_versioninfo_bump_major_and_minor (line 26) | def test_should_versioninfo_bump_major_and_minor(): function test_should_versioninfo_bump_minor_and_patch (line 32) | def test_should_versioninfo_bump_minor_and_patch(): function test_should_versioninfo_bump_patch_and_prerelease (line 39) | def test_should_versioninfo_bump_patch_and_prerelease(): function test_should_versioninfo_bump_patch_and_prerelease_with_token (line 46) | def test_should_versioninfo_bump_patch_and_prerelease_with_token(): function test_should_versioninfo_bump_prerelease_and_build (line 53) | def test_should_versioninfo_bump_prerelease_and_build(): function test_should_versioninfo_bump_prerelease_and_build_with_token (line 60) | def test_should_versioninfo_bump_prerelease_and_build_with_token(): function test_should_versioninfo_bump_multiple (line 67) | def test_should_versioninfo_bump_multiple(): function test_should_versioninfo_bump_prerelease_with_empty_str (line 77) | def test_should_versioninfo_bump_prerelease_with_empty_str(): function test_should_versioninfo_bump_prerelease_with_none (line 84) | def test_should_versioninfo_bump_prerelease_with_none(): function test_should_versioninfo_bump_prerelease_nonnumeric (line 91) | def test_should_versioninfo_bump_prerelease_nonnumeric(): function test_should_versioninfo_bump_prerelease_nonnumeric_nine (line 98) | def test_should_versioninfo_bump_prerelease_nonnumeric_nine(): function test_should_versioninfo_bump_prerelease_bump_patch (line 105) | def test_should_versioninfo_bump_prerelease_bump_patch(): function test_should_versioninfo_bump_patch_and_prerelease_bump_patch (line 112) | def test_should_versioninfo_bump_patch_and_prerelease_bump_patch(): function test_should_versioninfo_bump_build_with_empty_str (line 119) | def test_should_versioninfo_bump_build_with_empty_str(): function test_should_versioninfo_bump_build_with_none (line 126) | def test_should_versioninfo_bump_build_with_none(): function test_should_ignore_extensions_for_bump (line 133) | def test_should_ignore_extensions_for_bump(): function test_should_bump_prerelease (line 146) | def test_should_bump_prerelease(version, token, expected, expected_compa... function test_should_ignore_build_on_prerelease_bump (line 151) | def test_should_ignore_build_on_prerelease_bump(): function test_should_bump_build (line 164) | def test_should_bump_build(version, expected): FILE: tests/test_compare.py function test_should_get_less (line 20) | def test_should_get_less(left, right): function test_should_get_greater (line 37) | def test_should_get_greater(left, right): function test_should_raise_value_error_for_invalid_value (line 44) | def test_should_raise_value_error_for_invalid_value(left, right): function test_should_follow_specification_comparison (line 49) | def test_should_follow_specification_comparison(): function test_should_compare_rc_builds (line 77) | def test_should_compare_rc_builds(left, right): function test_should_compare_release_candidate_with_release (line 84) | def test_should_compare_release_candidate_with_release(left, right): function test_should_say_equal_versions_are_equal (line 97) | def test_should_say_equal_versions_are_equal(left, right): function test_should_compare_versions_with_build_and_release (line 105) | def test_should_compare_versions_with_build_and_release(left, right, exp... function test_should_ignore_builds_on_compare (line 118) | def test_should_ignore_builds_on_compare(left, right, expected): function test_should_get_more_rc1 (line 122) | def test_should_get_more_rc1(): function test_should_compare_prerelease_with_numbers_and_letters (line 126) | def test_should_compare_prerelease_with_numbers_and_letters(): function test_should_compare_version_info_objects (line 133) | def test_should_compare_version_info_objects(): function test_should_compare_version_dictionaries (line 163) | def test_should_compare_version_dictionaries(): function test_should_compare_version_tuples (line 202) | def test_should_compare_version_tuples(t): function test_should_compare_version_list (line 231) | def test_should_compare_version_list(lst): function test_should_compare_version_string (line 260) | def test_should_compare_version_string(s): function test_should_not_allow_to_compare_invalid_versionstring (line 280) | def test_should_not_allow_to_compare_invalid_versionstring(s): function test_should_not_allow_to_compare_version_with_int (line 288) | def test_should_not_allow_to_compare_version_with_int(): function test_should_compare_prerelease_and_build_with_numbers (line 298) | def test_should_compare_prerelease_and_build_with_numbers(): FILE: tests/test_deprecated_functions.py function test_should_raise_deprecation_warnings (line 59) | def test_should_raise_deprecation_warnings(func, args, kwargs): function test_deprecated_deco_without_argument (line 69) | def test_deprecated_deco_without_argument(): FILE: tests/test_docstrings.py function getallfunctions (line 8) | def getallfunctions(module=semver): function test_fordocstrings (line 35) | def test_fordocstrings(func): FILE: tests/test_format.py function test_should_finalize_version (line 17) | def test_should_finalize_version(version, expected): function test_should_correctly_format_version (line 21) | def test_should_correctly_format_version(): function test_parse_method_for_version_info (line 29) | def test_parse_method_for_version_info(): function test_repr (line 64) | def test_repr(version, expected): FILE: tests/test_immutable.py function test_immutable_major (line 4) | def test_immutable_major(version): function test_immutable_minor (line 9) | def test_immutable_minor(version): function test_immutable_patch (line 14) | def test_immutable_patch(version): function test_immutable_prerelease (line 19) | def test_immutable_prerelease(version): function test_immutable_build (line 24) | def test_immutable_build(version): function test_immutable_unknown_attribute (line 29) | def test_immutable_unknown_attribute(version): FILE: tests/test_index.py function test_version_info_should_be_accessed_with_index (line 26) | def test_version_info_should_be_accessed_with_index(version, index, expe... function test_version_info_should_be_accessed_with_slice_object (line 54) | def test_version_info_should_be_accessed_with_slice_object( function test_version_info_should_throw_index_error (line 76) | def test_version_info_should_throw_index_error(version, index): function test_version_info_should_throw_index_error_when_negative_index (line 92) | def test_version_info_should_throw_index_error_when_negative_index(versi... FILE: tests/test_match.py function test_should_match_simple (line 6) | def test_should_match_simple(): function test_should_no_match_simple (line 10) | def test_should_no_match_simple(): function test_should_match_not_equal (line 22) | def test_should_match_not_equal(left, right, expected): function test_should_match_equal_by_default (line 34) | def test_should_match_equal_by_default(left, right, expected): function test_should_not_raise_value_error_for_expected_match_expression (line 49) | def test_should_not_raise_value_error_for_expected_match_expression( function test_should_raise_value_error_for_unexpected_match_expression (line 58) | def test_should_raise_value_error_for_unexpected_match_expression(left, ... function test_should_raise_value_error_for_invalid_match_expression (line 64) | def test_should_raise_value_error_for_invalid_match_expression(left, rig... FILE: tests/test_max-min.py function test_should_get_max (line 6) | def test_should_get_max(): function test_should_get_max_same (line 10) | def test_should_get_max_same(): function test_should_get_min (line 14) | def test_should_get_min(): function test_should_get_min_same (line 18) | def test_should_get_min_same(): function test_prerelease_order (line 42) | def test_prerelease_order(left, right, expected): FILE: tests/test_parsing.py function test_should_parse_version (line 51) | def test_should_parse_version(version, expected): function test_should_parse_version_with_optional_minor_and_patch (line 101) | def test_should_parse_version_with_optional_minor_and_patch(version, exp... function test_parse_version_info_str_hash (line 106) | def test_parse_version_info_str_hash(): function test_should_parse_zero_prerelease (line 141) | def test_should_parse_zero_prerelease(version, expected): function test_should_raise_value_error_for_zero_prefixed_versions (line 147) | def test_should_raise_value_error_for_zero_prefixed_versions(version): function test_equal_versions_have_equal_hashes (line 152) | def test_equal_versions_have_equal_hashes(): function test_parse_method_for_version_info (line 166) | def test_parse_method_for_version_info(): function test_next_version_with_invalid_parts (line 172) | def test_next_version_with_invalid_parts(): function test_next_version_with_versioninfo (line 203) | def test_next_version_with_versioninfo(version, part, expected): FILE: tests/test_pysemver-cli.py function does_not_raise (line 19) | def does_not_raise(item): function test_should_parse_cli_arguments (line 40) | def test_should_parse_cli_arguments(cli, expected): function test_should_process_parsed_cli_arguments (line 102) | def test_should_process_parsed_cli_arguments(func, args, expectation): function test_should_process_print (line 108) | def test_should_process_print(capsys): function test_should_process_raise_error (line 115) | def test_should_process_raise_error(capsys): function test_should_raise_systemexit_when_called_with_empty_arguments (line 122) | def test_should_raise_systemexit_when_called_with_empty_arguments(): function test_should_raise_systemexit_when_bump_iscalled_with_empty_arguments (line 127) | def test_should_raise_systemexit_when_bump_iscalled_with_empty_arguments(): function test_should_process_check_iscalled_with_valid_version (line 132) | def test_should_process_check_iscalled_with_valid_version(capsys): function test_main_file_should_call_cli_main (line 140) | def test_main_file_should_call_cli_main(package_name): FILE: tests/test_replace.py function test_replace_method_replaces_requested_parts (line 25) | def test_replace_method_replaces_requested_parts(version, parts, expected): function test_replace_raises_TypeError_for_invalid_keyword_arg (line 29) | def test_replace_raises_TypeError_for_invalid_keyword_arg(): function test_should_return_versioninfo_with_replaced_parts (line 44) | def test_should_return_versioninfo_with_replaced_parts(version, parts, e... function test_replace_raises_ValueError_for_non_numeric_values (line 48) | def test_replace_raises_ValueError_for_non_numeric_values(): FILE: tests/test_semver.py function test_should_private_increment_string (line 9) | def test_should_private_increment_string(string, expected): function test_should_not_allow_negative_numbers (line 22) | def test_should_not_allow_negative_numbers(ver): function test_should_versioninfo_to_dict (line 27) | def test_should_versioninfo_to_dict(version): function test_should_versioninfo_to_tuple (line 33) | def test_should_versioninfo_to_tuple(version): function test_version_info_should_be_iterable (line 39) | def test_version_info_should_be_iterable(version): function test_should_be_able_to_use_strings_as_major_minor_patch (line 49) | def test_should_be_able_to_use_strings_as_major_minor_patch(): function test_using_non_numeric_string_as_major_minor_patch_throws (line 59) | def test_using_non_numeric_string_as_major_minor_patch_throws(): function test_should_be_able_to_use_integers_as_prerelease_build (line 68) | def test_should_be_able_to_use_integers_as_prerelease_build(): function test_should_versioninfo_isvalid (line 75) | def test_should_versioninfo_isvalid(): function test_versioninfo_compare_should_raise_when_passed_invalid_value (line 80) | def test_versioninfo_compare_should_raise_when_passed_invalid_value(): function test_should_succeed_compatible_match (line 95) | def test_should_succeed_compatible_match(old, new): function test_should_fail_compatible_match (line 113) | def test_should_fail_compatible_match(old, new): function test_should_fail_with_incompatible_type_for_compatible_match (line 127) | def test_should_fail_with_incompatible_type_for_compatible_match(wrongty... function test_should_succeed_with_compatible_subclass_for_is_compatible (line 133) | def test_should_succeed_with_compatible_subclass_for_is_compatible(): FILE: tests/test_subclass.py function test_subclass_from_versioninfo (line 5) | def test_subclass_from_versioninfo(): function test_replace_from_subclass (line 23) | def test_replace_from_subclass(): function test_compare_with_subclass (line 57) | def test_compare_with_subclass(): FILE: tests/test_typeerror-274.py function test_should_work_with_string_and_bytes (line 5) | def test_should_work_with_string_and_bytes(): function test_should_not_work_with_invalid_args (line 12) | def test_should_not_work_with_invalid_args():