MCPcopy Create free account

hub / github.com/psf/black / types & classes

Types & classes148 in github.com/psf/black

↓ 20 callersClassLeaf
Concrete implementation for leaf nodes.
src/blib2to3/pytree.py:381
↓ 13 callersClassBlackRunner
Make sure STDOUT and STDERR are kept separate when testing Black via its CLI.
tests/test_black.py:118
↓ 12 callersClassOk
src/black/rusty.py:11
↓ 9 callersClassLine
Holds leaves and comments. Can be printed with `str(line)`.
src/black/lines.py:48
↓ 8 callersClassNode
Concrete implementation for interior nodes.
src/blib2to3/pytree.py:240
↓ 6 callersClassCannotSplit
A readable split that fits the allotted line length is impossible.
src/black/linegen.py:83
↓ 6 callersClassCannotTransform
Base class for errors raised by Transformers.
src/black/trans.py:61
↓ 6 callersClassFakeContext
A fake click Context for when calling functions that need it.
tests/test_black.py:102
↓ 6 callersClassStringParser
A state machine that aids in parsing a string's "trailer", which can be either non-existent, an old-style formatting sequence (e.g. `% varX`
src/black/trans.py:2181
↓ 3 callersClassErr
src/black/rusty.py:19
↓ 3 callersClassParseError
Exception to signal the parser is stuck.
src/blib2to3/pgen2/parse.py:130
↓ 3 callersClassReport
Provides a reformatting counter. Can be rendered with `str(report)`.
src/black/report.py:24
↓ 2 callersClassA
tests/data/simple_cases/torture.py:13
↓ 2 callersClassDebugVisitor
tests/data/miscellaneous/debug_visitor.py:2
↓ 2 callersClassMode
src/black/mode.py:176
↓ 2 callersClassNFAState
src/blib2to3/pgen2/pgen.py:378
↓ 2 callersClassOffsetAndMagic
src/black/handle_ipynb_magics.py:358
↓ 2 callersClassReplacement
src/black/handle_ipynb_magics.py:53
↓ 1 callersClassBlackVersion
gallery/gallery.py:28
↓ 1 callersClassBracketMatchError
Raised when an opening bracket is unable to be matched to a closing bracket.
src/black/brackets.py:60
↓ 1 callersClassBracketTracker
Keeps track of brackets on a line.
src/black/brackets.py:65
↓ 1 callersClassCellMagic
src/black/handle_ipynb_magics.py:311
↓ 1 callersClassCellMagicFinder
Find cell magics. Note that the source of the abstract syntax tree will already have been processed by IPython's TransformerManager().tra
src/black/handle_ipynb_magics.py:324
↓ 1 callersClassCustomSplit
A custom (i.e. manual) string split. A single CustomSplit instance represents a single substring. Examples: Consider the following s
src/black/trans.py:275
↓ 1 callersClassDFAState
src/blib2to3/pgen2/pgen.py:390
↓ 1 callersClassDebugVisitor
src/black/debug.py:15
↓ 1 callersClassEmptyLineTracker
Provides a stateful method that returns the number of potential extra empty lines needed before and after the currently processed line. Note:
src/black/lines.py:513
↓ 1 callersClassFakeParameter
A fake click Parameter for when calling functions that need it.
tests/test_black.py:111
↓ 1 callersClassFormatFailure
Used to wrap failures when assert_format() runs in an extra mode.
tests/util.py:60
↓ 1 callersClassInvalidInput
Raised when input source code fails all parse attempts.
src/black/parsing.py:47
↓ 1 callersClassInvalidVariantHeader
src/blackd/__init__.py:56
↓ 1 callersClassLineGenerator
Generates reformatted Line objects. Empty lines are not emitted. Note: destroys the tree it's visiting by mutating prefixes of its leaves in
src/black/linegen.py:89
↓ 1 callersClassLinesBlock
Class that holds information about a block of formatted lines. This is introduced so that the EmptyLineTracker can look behind the standalone
src/black/lines.py:491
↓ 1 callersClassMagicFinder
Visit cell to look for get_ipython calls. Note that the source of the abstract syntax tree will already have been processed by IPython's
src/black/handle_ipynb_magics.py:365
↓ 1 callersClassNodePattern
src/blib2to3/pytree.py:649
↓ 1 callersClassParserGenerator
src/blib2to3/pgen2/pgen.py:32
↓ 1 callersClassPgenGrammar
src/blib2to3/pgen2/pgen.py:28
↓ 1 callersClassProtoComment
Describes a piece of syntax that is a comment. It's not a :class:`blib2to3.pytree.Leaf` so that: * it can be cached (`Leaf` objects should n
src/black/comments.py:36
↓ 1 callersClassRHSResult
Intermediate split result from a right hand split.
src/black/lines.py:480
↓ 1 callersClassRecorder
src/blib2to3/pgen2/parse.py:60
↓ 1 callersClassReleaseRange
src/blib2to3/pgen2/driver.py:52
↓ 1 callersClassStringMerger
StringTransformer that merges strings together. Requirements: (A) The line contains adjacent strings such that ALL of the validation chec
src/black/trans.py:362
↓ 1 callersClassStringParenStripper
StringTransformer that strips surrounding parentheses from strings. Requirements: The line contains a string which is surrounded by paren
src/black/trans.py:776
↓ 1 callersClassStringParenWrapper
StringTransformer that wraps strings in parens and then splits at the LPAR. Requirements: All of the requirements listed in BaseStri
src/black/trans.py:1788
↓ 1 callersClassStringSplitter
StringTransformer that splits "atom" strings (i.e. strings which exist on lines by themselves). Requirements: * The line consist
src/black/trans.py:1281
↓ 1 callersClassTargetVersion
src/black/mode.py:23
↓ 1 callersClassTokenError
src/blib2to3/pgen2/tokenize.py:183
↓ 1 callersClassTokenProxy
src/blib2to3/pgen2/driver.py:62
↓ 1 callersClassUntokenizer
src/blib2to3/pgen2/tokenize.py:232
↓ 1 callersClassWildcardPattern
A wildcard pattern can match zero or more nodes. This has all the flexibility needed to implement patterns like: .* .+ .?
src/blib2to3/pytree.py:718
↓ 1 callersClassX
tests/data/simple_cases/trailing_comma_optional_parens1.py:10
↓ 1 callersClass_pattern_symbols
src/blib2to3/pygram.py:142
↓ 1 callersClass_python_symbols
src/blib2to3/pygram.py:35
ClassA
tests/data/simple_cases/fmtonoff5.py:51
ClassA
tests/data/simple_cases/fmtskip6.py:1
ClassA
tests/data/simple_cases/trailing_comma_optional_parens1.py:18
ClassA
tests/data/miscellaneous/force_pyi.py:6
ClassA
tests/data/preview/long_strings__regression.py:1
ClassALonelyClass
A multiline class docstring.
tests/data/miscellaneous/docstring_no_string_normalization.py:1
ClassB
tests/data/miscellaneous/force_pyi.py:8
ClassB
tests/data/preview/long_strings__regression.py:36
ClassBase
Abstract base class for Node and Leaf. This provides some default functionality and boilerplate using the template pattern. A node
src/blib2to3/pytree.py:61
ClassBasePattern
A pattern is a tree matching pattern. It looks for a specific node type (token or symbol), and optionally for a specific content. T
src/blib2to3/pytree.py:509
ClassBaseStringSplitter
Abstract class for StringTransformers which transform a Line's strings by splitting them or placing them on their own lines where necessary t
src/black/trans.py:960
ClassBlackBaseTestCase
tests/util.py:141
ClassBlackDTestCase
tests/test_blackd.py:34
ClassBlackTestCase
tests/test_black.py:143
ClassC
tests/data/simple_cases/composition.py:1
ClassC
tests/data/simple_cases/composition_no_trailing_comma.py:1
ClassC
tests/data/simple_cases/comments4.py:9
ClassC
tests/data/miscellaneous/force_pyi.py:13
ClassC
tests/data/preview/comments7.py:84
ClassChanged
src/black/report.py:13
ClassClassSimplest
tests/data/simple_cases/class_methods_new_line.py:1
ClassClassSimplestWithInner
tests/data/simple_cases/class_methods_new_line.py:38
ClassClassSimplestWithInnerWithDocstring
tests/data/simple_cases/class_methods_new_line.py:41
ClassClassWithDecoInit
tests/data/simple_cases/class_methods_new_line.py:23
ClassClassWithDecoInitAndVars
tests/data/simple_cases/class_methods_new_line.py:27
ClassClassWithDecoInitAndVarsAndDocstring
Test class
tests/data/simple_cases/class_methods_new_line.py:32
ClassClassWithDecoInitAndVarsAndDocstringWithInner
Test class
tests/data/simple_cases/class_methods_new_line.py:85
ClassClassWithDecoInitAndVarsAndDocstringWithInner2
Test class
tests/data/simple_cases/class_methods_new_line.py:93
ClassClassWithDecoInitAndVarsWithInner
tests/data/simple_cases/class_methods_new_line.py:78
ClassClassWithDecoInitWithInner
tests/data/simple_cases/class_methods_new_line.py:72
ClassClassWithDocstring
A docstring.
tests/data/simple_cases/comments9.py:37
ClassClassWithDocstring
A docstring.
tests/data/simple_cases/docstring_no_extra_empty_line_before_eof.py:3
ClassClassWithEmptyFunc
tests/data/simple_cases/class_blank_parentheses.py:8
ClassClassWithInit
tests/data/simple_cases/class_methods_new_line.py:7
ClassClassWithInitAndVars
tests/data/simple_cases/class_methods_new_line.py:14
ClassClassWithInitAndVarsAndDocstring
Test class
tests/data/simple_cases/class_methods_new_line.py:18
ClassClassWithInitAndVarsAndDocstringWithInner
Test class
tests/data/simple_cases/class_methods_new_line.py:65
ClassClassWithInitAndVarsWithInner
tests/data/simple_cases/class_methods_new_line.py:59
ClassClassWithInitWithInner
tests/data/simple_cases/class_methods_new_line.py:54
ClassClassWithJustTheDocstring
Just a docstring.
tests/data/simple_cases/class_methods_new_line.py:5
ClassClassWithJustTheDocstringWithInner
Just a docstring.
tests/data/simple_cases/class_methods_new_line.py:50
ClassClassWithSingleField
tests/data/simple_cases/class_methods_new_line.py:3
ClassClassWithSingleFieldWithInner
tests/data/simple_cases/class_methods_new_line.py:46
ClassClassWithSpaceParentheses
tests/data/simple_cases/class_blank_parentheses.py:3
ClassClassWithTheDocstringAndInit
Just a docstring.
tests/data/simple_cases/class_methods_new_line.py:10
ClassConverter
Grammar subclass that reads classic pgen output files. The run() method reads the tables as produced by the pgen parser generator, typically
src/blib2to3/pgen2/conv.py:38
ClassCustomSplitMapMixin
This mixin class is used to map merged strings to a sequence of CustomSplits, which will then be used to re-split the strings iff none of
src/black/trans.py:301
next →1–100 of 148, ranked by callers