MCPcopy Create free account

hub / github.com/psf/black / functions

Functions1,067 in github.com/psf/black

Method_submatch
Match the pattern's content to the node's children. This assumes the node type matches and self.content is not None. Return
src/blib2to3/pytree.py:690
Method_test_wip
(self)
tests/test_black.py:252
Functionabc
()
tests/data/miscellaneous/blackd_diff.py:1
Methodaddarc
(self, next: "DFAState", label: Text)
src/blib2to3/pgen2/pgen.py:403
Methodaddclosure
(state: NFAState, base: Dict[NFAState, int])
src/blib2to3/pgen2/pgen.py:218
Functionall_data_cases
(subdir_name: str, data: bool = True)
tests/util.py:150
Functionall_markers
(a, b, /, c, d, *, e, f)
tests/data/py_38/pep_570.py:5
Functionall_markers_with_args_and_kwargs
( a_long_one, b_long_one, /, c_long_one, d_long_one, *args, e_long_one, f_long
tests/data/py_38/pep_570.py:9
Functionall_markers_with_defaults
(a, b=1, /, c=2, d=3, *, e=4, f=5)
tests/data/py_38/pep_570.py:23
Functionand_that
"hey yah"
tests/data/simple_cases/docstring.py:95
Functionand_that
"hey yah"
tests/data/miscellaneous/docstring_no_string_normalization.py:85
Functionand_this
"hey yah
tests/data/simple_cases/docstring.py:100
Functionand_this
"hey yah
tests/data/miscellaneous/docstring_no_string_normalization.py:90
Functionanother_inline
()
tests/data/simple_cases/comments9.py:89
Functionanother_top_level_quote_inline_inline
()
tests/data/simple_cases/comments9.py:102
Functionasync_fn
()
tests/data/miscellaneous/async_as_identifier.py:22
Functionasync_function
()
tests/data/simple_cases/comments9.py:19
Functionawait_the_walrus
()
tests/data/py_38/pep_572_remove_parens.py:52
Functionawaited_generator_value
(n)
tests/data/py_37/python37.py:25
Methodb
(self)
tests/data/simple_cases/trailing_comma_optional_parens1.py:19
Functionbackslash_space
\
tests/data/simple_cases/docstring.py:162
Functionbackslash_space
\
tests/data/miscellaneous/docstring_no_string_normalization.py:106
Functionbar
()
tests/data/simple_cases/comments9.py:125
Methodbar
(self)
tests/data/simple_cases/remove_newline_after_code_block_open.py:31
Functionbaz
This" is a string with some embedded "quotes
tests/data/simple_cases/docstring.py:27
Functionbaz
This" is a string with some embedded "quotes
tests/data/miscellaneous/docstring_no_string_normalization.py:31
Functionbelieve_it_or_not_this_is_in_the_py_stdlib
"hey yah
tests/data/simple_cases/docstring.py:126
Functionbelieve_it_or_not_this_is_in_the_py_stdlib
"hey yah
tests/data/miscellaneous/docstring_no_string_normalization.py:95
Functionbob
()
tests/data/simple_cases/comment_after_escaped_newline.py:1
Functionbobtwo
()
tests/data/simple_cases/comment_after_escaped_newline.py:6
Methodbreaks_unsplittable_expression
Returns: True iff returning @i would result in the splitting of an unsplittable expression (which is NOT
src/black/trans.py:1691
Functioncancel
asyncio signal handler that cancels all `tasks` and reports to stderr.
src/black/concurrency.py:40
Methodcheck
(header_value: str, expected_status: int = 400)
tests/test_blackd.py:84
Functioncheck_fader
(test)
tests/data/simple_cases/fmtonoff2.py:21
Functionclass_under_the_func_with_blank_parentheses
()
tests/data/simple_cases/class_blank_parentheses.py:16
Methodclone
(self)
src/blib2to3/pytree.py:298
Methodclone
(self)
src/blib2to3/pytree.py:452
Methodclosure
(state: NFAState)
src/blib2to3/pgen2/pgen.py:213
Functioncomment_body
( baseline: Path, target: Path, baseline_sha: str, target_sha: str, pr_num: int )
scripts/diff_shades_gha_helper.py:161
Functioncomment_details
(run_id: str)
scripts/diff_shades_gha_helper.py:194
Functionconfig
(event: Literal["push", "pull_request"])
scripts/diff_shades_gha_helper.py:110
Functioncoroutine
Single-line docstring. Multiline is harder to reformat.
tests/data/simple_cases/fmtonoff.py:28
Functioncoroutine
Single-line docstring. Multiline is harder to reformat.
tests/data/simple_cases/function.py:19
Functiondastardly_default_value
( cow: String = json.loads("""this is quite the dastadardly value!"""), **kwargs, )
tests/data/preview/multiline_strings.py:138
Functiondecorated
()
tests/data/simple_cases/comments9.py:53
Functiondecorated1
()
tests/data/simple_cases/comments5.py:48
Functiondecorated_with_split_leading_comments
()
tests/data/simple_cases/comments9.py:66
Functiondelimiter_split
Split according to delimiters of the highest priority. If the appropriate Features are given, the split will add trailing commas also in func
src/black/linegen.py:977
Methoddepth
(self)
src/blib2to3/pytree.py:223
Functiondetect_encoding
The detect_encoding() function is used to detect the encoding that should be used to decode a Python source file. It requires one argument, r
src/blib2to3/pgen2/tokenize.py:312
Methoddisappearing_comment
()
tests/data/preview/long_strings__regression.py:59
Methoddo_match
(self, line: Line)
src/black/trans.py:382
Methoddo_match
(self, line: Line)
src/black/trans.py:796
Methoddo_match
(self, line: Line)
src/black/trans.py:1005
Functiondo_not_touch_this_prefix
R"""There was a bug where docstring prefixes would be normalized even with -S.
tests/data/miscellaneous/docstring_preview_no_string_normalization.py:1
Functiondo_not_touch_this_prefix2
FR'There was a bug where docstring prefixes would be normalized even with -S.
tests/data/miscellaneous/docstring_preview_no_string_normalization.py:5
Functiondo_not_touch_this_prefix3
u'''There was a bug where docstring prefixes would be normalized even with -S.
tests/data/miscellaneous/docstring_preview_no_string_normalization.py:9
Methoddo_splitter_match
(self, line: Line)
src/black/trans.py:1321
Methoddo_splitter_match
(self, line: Line)
src/black/trans.py:1845
Methoddo_transform
( self, line: Line, string_indices: List[int] )
src/black/trans.py:419
Methoddo_transform
( self, line: Line, string_indices: List[int] )
src/black/trans.py:900
Methoddo_transform
( self, line: Line, string_indices: List[int] )
src/black/trans.py:1375
Methoddo_transform
( self, line: Line, string_indices: List[int] )
src/black/trans.py:2056
Functiondocstring_almost_at_line_limit
long docstring.................................................................
tests/data/simple_cases/docstring.py:196
Functiondocstring_almost_at_line_limit
long docstring.................................................................
tests/data/simple_cases/docstring_preview.py:1
Functiondocstring_almost_at_line_limit2
long docstring................................................................. .................................................................
tests/data/simple_cases/docstring.py:200
Functiondocstring_almost_at_line_limit_with_prefix
f"""long docstring................................................................
tests/data/simple_cases/docstring_preview.py:6
Functiondocstring_at_line_limit
long docstring................................................................
tests/data/simple_cases/docstring.py:207
Functiondocstring_at_line_limit
long docstring................................................................
tests/data/simple_cases/docstring_preview.py:25
Functiondocstring_at_line_limit_with_prefix
f"""long docstring...............................................................
tests/data/simple_cases/docstring_preview.py:29
Functiondocstring_multiline
R""" clear out all of the issues opened in that time :p
tests/data/simple_cases/string_prefixes.py:17
Functiondocstring_singleline
R"""2020 was one hell of a year. The good news is that we were able to
tests/data/simple_cases/string_prefixes.py:13
Functiondocstring_with_inline_tabs_and_space_indentation
hey tab separated value tab at start of line and then a tab separated value multiple tabs at the beginning and inline mixe
tests/data/simple_cases/docstring.py:137
Functiondocstring_with_inline_tabs_and_tab_indentation
hey tab separated value tab at start of line and then a tab separated value multiple tabs at the beginning and inline mixed tabs and s
tests/data/simple_cases/docstring.py:149
Functiondont_increase_indentation
Normalize prefix of the first leaf in every line returned by `split_func`. This is a decorator over relevant split functions.
src/black/linegen.py:940
Functiondouble
(a: int)
tests/data/simple_cases/return_annotation_brackets.py:2
Methoddump_dfa
(self, name: Text, dfa: Sequence["DFAState"])
src/blib2to3/pgen2/pgen.py:260
Methoddump_nfa
(self, name: Text, start: "NFAState", finish: "NFAState")
src/blib2to3/pgen2/pgen.py:244
Functiondump_to_stderr
(*output: str)
tests/util.py:137
Methodeasy_asserts
(self)
tests/data/simple_cases/composition.py:61
Methodeasy_asserts
(self)
tests/data/simple_cases/composition_no_trailing_comma.py:61
Functioneggs
()
tests/data/miscellaneous/force_pyi.py:30
Functionempty
()
tests/data/simple_cases/docstring.py:118
Functionenumerate_reversed
Like `reversed(enumerate(sequence))` if that were possible.
src/black/lines.py:720
Methoderr
(msg: str, **kwargs: Any)
tests/test_black.py:534
Functionescape
(m: Match[Text])
src/blib2to3/pgen2/literals.py:25
Functionevent_loop
()
tests/test_black.py:91
Functionexample
(session)
tests/data/simple_cases/fmtonoff.py:84
Functionexample
(session)
tests/data/simple_cases/function.py:38
Functionexample
()
tests/data/simple_cases/remove_parens.py:18
Functionexample1
()
tests/data/simple_cases/remove_parens.py:22
Functionexample1point5
()
tests/data/simple_cases/remove_parens.py:26
Functionexample2
()
tests/data/simple_cases/remove_parens.py:30
Functionexample3
()
tests/data/simple_cases/remove_parens.py:34
Functionexample4
()
tests/data/simple_cases/remove_parens.py:38
Functionexample5
()
tests/data/simple_cases/remove_parens.py:42
Functionexample6
()
tests/data/simple_cases/remove_parens.py:46
Functionexample7
()
tests/data/simple_cases/remove_parens.py:50
Functionexample8
()
tests/data/simple_cases/remove_parens.py:54
Functionf
()
tests/data/simple_cases/fmtonoff4.py:7
← previousnext →501–600 of 1,067, ranked by callers