MCPcopy Create free account

hub / github.com/psf/black / functions

Functions1,067 in github.com/psf/black

Functionf
(a,)
tests/data/simple_cases/function_trailing_comma.py:1
Functionf
()
tests/data/simple_cases/empty_lines.py:5
Functionf
( a, **kwargs, )
tests/data/simple_cases/function.py:84
Functionf
( a, **kwargs, )
tests/data/simple_cases/function2.py:1
Functionf
( a, # type: int )
tests/data/simple_cases/comments6.py:4
Functionf
()
tests/data/py_37/python37.py:4
Functionf
()
tests/data/miscellaneous/decorators.py:11
Functionf
x
tests/data/miscellaneous/linelength6.py:2
Functionf1
(*args: *b)
tests/data/py_311/pep_646.py:169
Functionf2
(a,b,)
tests/data/simple_cases/function_trailing_comma.py:5
Functionf2
(*args: *b, arg1)
tests/data/py_311/pep_646.py:176
Functionf3
(*args: *b, arg1: int)
tests/data/py_311/pep_646.py:183
Functionf4
(*args: *b, arg1: int = 2)
tests/data/py_311/pep_646.py:190
Methodfirst_method
(self)
tests/data/simple_cases/comments9.py:113
Functionfoo
()
tests/data/simple_cases/return_annotation_brackets.py:35
Functionfoo
This is a docstring with some lines of text here
tests/data/simple_cases/docstring.py:13
Functionfoo
()
tests/data/simple_cases/function2.py:49
Functionfoo
()
tests/data/simple_cases/comments9.py:118
Functionfoo
(list_a, list_b)
tests/data/simple_cases/comments4.py:59
Functionfoo
( # type: Foo x)
tests/data/type_comments/type_comment_syntax_error.py:1
Functionfoo
This is a docstring with some lines of text here
tests/data/miscellaneous/docstring_no_string_normalization.py:24
Functionfoo
()
tests/data/miscellaneous/long_strings_flag_disabled.py:273
Functionfoo
()
tests/data/miscellaneous/force_pyi.py:19
Functionfoo
()
tests/data/preview/long_strings__regression.py:7
Functionfoo
()
tests/data/preview/long_strings.py:229
Methodfoo
(self)
tests/data/simple_cases/torture.py:14
Methodfoo
()
tests/data/preview/long_strings__regression.py:2
Methodfoo
()
tests/data/preview/long_strings__regression.py:37
Methodfoo
(self)
tests/data/preview/long_strings__regression.py:411
Functionfoo1
()
tests/data/simple_cases/remove_newline_after_code_block_open.py:4
Functionfoo2
(list_a, list_b)
tests/data/simple_cases/comments4.py:75
Functionfoo2
()
tests/data/simple_cases/remove_newline_after_code_block_open.py:9
Functionfoo2
(answer: (p := 42) = 5)
tests/data/py_38/pep_572_remove_parens.py:30
Functionfoo3
(list_a, list_b)
tests/data/simple_cases/comments4.py:86
Functionfoo3
()
tests/data/simple_cases/remove_newline_after_code_block_open.py:16
Functionfoo4
()
tests/data/simple_cases/remove_newline_after_code_block_open.py:23
Functionfrobnicate
()
tests/data/preview/return_annotation_brackets_string.py:2
Functionfunc
()
tests/data/simple_cases/function_trailing_comma.py:40
Functionfunc
( a=some_list[0], # type: int )
tests/data/simple_cases/comments6.py:86
Functionfunc
()
tests/data/preview_context_managers/targeting_py39.py:70
Functionfunc
(match: case, case: match)
tests/data/py_310/pattern_matching_extras.py:24
Functionfunc
()
tests/data/preview/async_stmts.py:1
Functionfunc
()
tests/data/preview/comments7.py:46
Functionfunc
( arg1, arg2, )
tests/data/preview/long_strings__type_annotations.py:1
Methodfunc_for_testing
(self, first, second)
tests/data/simple_cases/class_blank_parentheses.py:21
Functionfunc_no_args
()
tests/data/simple_cases/fmtonoff.py:19
Functionfunc_no_args
()
tests/data/simple_cases/function.py:10
Methodfunc_with_blank_parentheses
()
tests/data/simple_cases/class_blank_parentheses.py:10
Functionfunction
()
tests/data/simple_cases/comments9.py:5
Functionfunction
(**kwargs)
tests/data/simple_cases/power_op_spacing.py:1
Functionfunction
 This docstring is already formatted a b
tests/data/simple_cases/comments_non_breaking_space.py:12
Functionfunction_dont_replace_spaces
()
tests/data/simple_cases/power_op_spacing.py:10
Functionfunction_replace_spaces
(**kwargs)
tests/data/simple_cases/power_op_spacing.py:6
Functionfunction_signature_stress_test
(number:int,no_annotation=None,text:str='default',* ,debug:bool=False,**kwargs)
tests/data/simple_cases/fmtonoff.py:38
Functionfunction_signature_stress_test
(number:int,no_annotation=None,text:str="default",* ,debug:bool=False,**kwargs)
tests/data/simple_cases/function.py:29
Functiong
()
tests/data/simple_cases/empty_lines.py:56
Functiong
()
tests/data/simple_cases/comments5.py:68
Functiong
Docstring.
tests/data/simple_cases/function2.py:16
Functiong
()
tests/data/py_37/python37.py:8
Functiongenerate_grammar
(filename: Path = "Grammar.txt")
src/blib2to3/pgen2/pgen.py:431
Methodgenerate_matches
(self, nodes: List[NL])
src/blib2to3/pytree.py:950
Methodget_application
(self)
tests/test_blackd.py:42
Methodget_help_text
(self)
tests/data/simple_cases/trailing_comma_optional_parens1.py:11
Methodget_lineno
Return the line number which generated the invocant node.
src/blib2to3/pytree.py:160
Methodget_output
(*args: Any, **kwargs: Any)
tests/test_black.py:1384
Functionget_package
( package: str, version: Optional[str], directory: Path )
gallery/gallery.py:105
Functionget_stuff
(cr, value)
tests/data/preview/multiline_strings.py:74
Methodget_suffix
Return the string immediately following the invocant node. This is effectively equivalent to node.next_sibling.prefix
src/blib2to3/pytree.py:228
Functionh
()
tests/data/simple_cases/function2.py:21
Functionhandle
(request: web.Request, executor: Executor)
src/blackd/__init__.py:83
Methodheader
(self)
src/black/handle_ipynb_magics.py:317
Functionhttp_status
(status)
tests/data/py_310/remove_newline_after_match.py:1
Functionhug_power_op
A transformer which normalizes spacing around power operators.
src/black/trans.py:88
Functioni_should_be_followed_by_only_one_newline
()
tests/data/simple_cases/function2.py:29
Functionignored_docstring
a => \ b
tests/data/simple_cases/docstring.py:130
Methodilabels
(self)
src/blib2to3/pgen2/parse.py:71
Functionimpl
(request: Request, handler: Handler)
src/blackd/middlewares.py:23
Functionimport_as_names
()
tests/data/simple_cases/fmtonoff.py:61
Functioninitialize
(cache_dir: Union[str, "os.PathLike[str]", None] = None)
src/blib2to3/pygram.py:164
Functioninline
()
tests/data/simple_cases/comments9.py:86
Functioninline_after_else
()
tests/data/simple_cases/comments9.py:93
Functioninline_comments_in_brackets_ruin_everything
()
tests/data/simple_cases/comments2.py:61
Functioninner
()
tests/data/simple_cases/function2.py:18
Methodis_class
Is this line a class definition?
src/black/lines.py:133
Methodis_class_paren_empty
Is this a class with no base classes but using parentheses? Those are unnecessary and should be removed.
src/black/lines.py:168
Methodis_comment
Is this line a standalone comment?
src/black/lines.py:113
Methodis_decorator
Is this line a decorator?
src/black/lines.py:118
Methodis_def
Is this a function definition? (Also returns True for async defs.)
src/black/lines.py:149
Methodis_import
Is this an import line?
src/black/lines.py:123
Methodis_stub_class
Is this line a class definition with a body consisting only of "..."?
src/black/lines.py:142
Methodis_triple_quoted_string
Is the line a triple quoted string?
src/black/lines.py:184
Methodis_with_or_async_with_stmt
Is this a with_stmt line?
src/black/lines.py:128
Functionlam_sub
(grammar: Grammar, node: RawNode)
src/blib2to3/pgen2/parse.py:44
Methodleaves
(self)
src/blib2to3/pytree.py:462
Functionleft_hand_split
Split line into many lines, starting with the first matching bracket pair. Note: this usually looks weird, only use this for function definitions
src/black/linegen.py:619
Functionlib2to3_unparse
Given a lib2to3 node, return its string representation.
src/black/parsing.py:144
Functionlimit_offset_sql
Return LIMIT/OFFSET SQL clause.
tests/data/conditional_expression.py:47
Functionload_packaged_grammar
Normally, loads a pickled grammar by doing pkgutil.get_data(package, pickled_grammar) where *pickled_grammar* is computed from *grammar_so
src/blib2to3/pgen2/driver.py:288
Functionlong_function_name
(argument_one, argument_two, argument_three, argument_four, argument_five, argument_six, *rest)
tests/data/miscellaneous/force_py36.py:3
Functionlong_lines
()
tests/data/simple_cases/fmtonoff.py:118
← previousnext →601–700 of 1,067, ranked by callers