Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/psf/black
/ functions
Functions
1,067 in github.com/psf/black
⨍
Functions
1,067
◇
Types & classes
148
↳
Endpoints
29
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
Function
abc
()
tests/data/miscellaneous/blackd_diff.py:1
Method
addarc
(self, next: "DFAState", label: Text)
src/blib2to3/pgen2/pgen.py:403
Method
addclosure
(state: NFAState, base: Dict[NFAState, int])
src/blib2to3/pgen2/pgen.py:218
Function
all_data_cases
(subdir_name: str, data: bool = True)
tests/util.py:150
Function
all_markers
(a, b, /, c, d, *, e, f)
tests/data/py_38/pep_570.py:5
Function
all_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
Function
all_markers_with_defaults
(a, b=1, /, c=2, d=3, *, e=4, f=5)
tests/data/py_38/pep_570.py:23
Function
and_that
"hey yah"
tests/data/simple_cases/docstring.py:95
Function
and_that
"hey yah"
tests/data/miscellaneous/docstring_no_string_normalization.py:85
Function
and_this
"hey yah
tests/data/simple_cases/docstring.py:100
Function
and_this
"hey yah
tests/data/miscellaneous/docstring_no_string_normalization.py:90
Function
another_inline
()
tests/data/simple_cases/comments9.py:89
Function
another_top_level_quote_inline_inline
()
tests/data/simple_cases/comments9.py:102
Function
async_fn
()
tests/data/miscellaneous/async_as_identifier.py:22
Function
async_function
()
tests/data/simple_cases/comments9.py:19
Function
await_the_walrus
()
tests/data/py_38/pep_572_remove_parens.py:52
Function
awaited_generator_value
(n)
tests/data/py_37/python37.py:25
Method
b
(self)
tests/data/simple_cases/trailing_comma_optional_parens1.py:19
Function
backslash_space
\
tests/data/simple_cases/docstring.py:162
Function
backslash_space
\
tests/data/miscellaneous/docstring_no_string_normalization.py:106
Function
bar
()
tests/data/simple_cases/comments9.py:125
Method
bar
(self)
tests/data/simple_cases/remove_newline_after_code_block_open.py:31
Function
baz
This" is a string with some embedded "quotes
tests/data/simple_cases/docstring.py:27
Function
baz
This" is a string with some embedded "quotes
tests/data/miscellaneous/docstring_no_string_normalization.py:31
Function
believe_it_or_not_this_is_in_the_py_stdlib
"hey yah
tests/data/simple_cases/docstring.py:126
Function
believe_it_or_not_this_is_in_the_py_stdlib
"hey yah
tests/data/miscellaneous/docstring_no_string_normalization.py:95
Function
bob
()
tests/data/simple_cases/comment_after_escaped_newline.py:1
Function
bobtwo
()
tests/data/simple_cases/comment_after_escaped_newline.py:6
Method
breaks_unsplittable_expression
Returns: True iff returning @i would result in the splitting of an unsplittable expression (which is NOT
src/black/trans.py:1691
Function
cancel
asyncio signal handler that cancels all `tasks` and reports to stderr.
src/black/concurrency.py:40
Method
check
(header_value: str, expected_status: int = 400)
tests/test_blackd.py:84
Function
check_fader
(test)
tests/data/simple_cases/fmtonoff2.py:21
Function
class_under_the_func_with_blank_parentheses
()
tests/data/simple_cases/class_blank_parentheses.py:16
Method
clone
(self)
src/blib2to3/pytree.py:298
Method
clone
(self)
src/blib2to3/pytree.py:452
Method
closure
(state: NFAState)
src/blib2to3/pgen2/pgen.py:213
Function
comment_body
( baseline: Path, target: Path, baseline_sha: str, target_sha: str, pr_num: int )
scripts/diff_shades_gha_helper.py:161
Function
comment_details
(run_id: str)
scripts/diff_shades_gha_helper.py:194
Function
config
(event: Literal["push", "pull_request"])
scripts/diff_shades_gha_helper.py:110
Function
coroutine
Single-line docstring. Multiline is harder to reformat.
tests/data/simple_cases/fmtonoff.py:28
Function
coroutine
Single-line docstring. Multiline is harder to reformat.
tests/data/simple_cases/function.py:19
Function
dastardly_default_value
( cow: String = json.loads("""this is quite the dastadardly value!"""), **kwargs, )
tests/data/preview/multiline_strings.py:138
Function
decorated
()
tests/data/simple_cases/comments9.py:53
Function
decorated1
()
tests/data/simple_cases/comments5.py:48
Function
decorated_with_split_leading_comments
()
tests/data/simple_cases/comments9.py:66
Function
delimiter_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
Method
depth
(self)
src/blib2to3/pytree.py:223
Function
detect_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
Method
disappearing_comment
()
tests/data/preview/long_strings__regression.py:59
Method
do_match
(self, line: Line)
src/black/trans.py:382
Method
do_match
(self, line: Line)
src/black/trans.py:796
Method
do_match
(self, line: Line)
src/black/trans.py:1005
Function
do_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
Function
do_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
Function
do_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
Method
do_splitter_match
(self, line: Line)
src/black/trans.py:1321
Method
do_splitter_match
(self, line: Line)
src/black/trans.py:1845
Method
do_transform
( self, line: Line, string_indices: List[int] )
src/black/trans.py:419
Method
do_transform
( self, line: Line, string_indices: List[int] )
src/black/trans.py:900
Method
do_transform
( self, line: Line, string_indices: List[int] )
src/black/trans.py:1375
Method
do_transform
( self, line: Line, string_indices: List[int] )
src/black/trans.py:2056
Function
docstring_almost_at_line_limit
long docstring.................................................................
tests/data/simple_cases/docstring.py:196
Function
docstring_almost_at_line_limit
long docstring.................................................................
tests/data/simple_cases/docstring_preview.py:1
Function
docstring_almost_at_line_limit2
long docstring................................................................. .................................................................
tests/data/simple_cases/docstring.py:200
Function
docstring_almost_at_line_limit_with_prefix
f"""long docstring................................................................
tests/data/simple_cases/docstring_preview.py:6
Function
docstring_at_line_limit
long docstring................................................................
tests/data/simple_cases/docstring.py:207
Function
docstring_at_line_limit
long docstring................................................................
tests/data/simple_cases/docstring_preview.py:25
Function
docstring_at_line_limit_with_prefix
f"""long docstring...............................................................
tests/data/simple_cases/docstring_preview.py:29
Function
docstring_multiline
R""" clear out all of the issues opened in that time :p
tests/data/simple_cases/string_prefixes.py:17
Function
docstring_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
Function
docstring_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
Function
docstring_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
Function
dont_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
Function
double
(a: int)
tests/data/simple_cases/return_annotation_brackets.py:2
Method
dump_dfa
(self, name: Text, dfa: Sequence["DFAState"])
src/blib2to3/pgen2/pgen.py:260
Method
dump_nfa
(self, name: Text, start: "NFAState", finish: "NFAState")
src/blib2to3/pgen2/pgen.py:244
Function
dump_to_stderr
(*output: str)
tests/util.py:137
Method
easy_asserts
(self)
tests/data/simple_cases/composition.py:61
Method
easy_asserts
(self)
tests/data/simple_cases/composition_no_trailing_comma.py:61
Function
eggs
()
tests/data/miscellaneous/force_pyi.py:30
Function
empty
()
tests/data/simple_cases/docstring.py:118
Function
enumerate_reversed
Like `reversed(enumerate(sequence))` if that were possible.
src/black/lines.py:720
Method
err
(msg: str, **kwargs: Any)
tests/test_black.py:534
Function
escape
(m: Match[Text])
src/blib2to3/pgen2/literals.py:25
Function
event_loop
()
tests/test_black.py:91
Function
example
(session)
tests/data/simple_cases/fmtonoff.py:84
Function
example
(session)
tests/data/simple_cases/function.py:38
Function
example
()
tests/data/simple_cases/remove_parens.py:18
Function
example1
()
tests/data/simple_cases/remove_parens.py:22
Function
example1point5
()
tests/data/simple_cases/remove_parens.py:26
Function
example2
()
tests/data/simple_cases/remove_parens.py:30
Function
example3
()
tests/data/simple_cases/remove_parens.py:34
Function
example4
()
tests/data/simple_cases/remove_parens.py:38
Function
example5
()
tests/data/simple_cases/remove_parens.py:42
Function
example6
()
tests/data/simple_cases/remove_parens.py:46
Function
example7
()
tests/data/simple_cases/remove_parens.py:50
Function
example8
()
tests/data/simple_cases/remove_parens.py:54
Function
f
()
tests/data/simple_cases/fmtonoff4.py:7
← previous
next →
501–600 of 1,067, ranked by callers