Skip to content

Commit 3747240

Browse files
committed
superfluous data
1 parent 2f5e316 commit 3747240

File tree

2 files changed

+8
-81
lines changed

2 files changed

+8
-81
lines changed

rich/console.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,14 @@ def __console__(
140140

141141

142142
class RenderGroup:
143-
def __init__(self, *renderables: RenderableType, fit: bool = True) -> None:
144-
"""Takes a group of renderables and returns a renderable object,
145-
that renders the group.
143+
"""Takes a group of renderables and returns a renderable object that renders the group.
144+
145+
Args:
146+
renderables (Iterable[RenderableType]): An iterable of renderable objects.
146147
147-
Args:
148-
renderables (Iterable[RenderableType]): An iterable of renderable objects.
149-
"""
148+
"""
149+
150+
def __init__(self, *renderables: RenderableType, fit: bool = True) -> None:
150151
self._renderables = renderables
151152
self.fit = fit
152153
self._render: Optional[List[RenderableType]] = None

rich/default_styles.py

Lines changed: 1 addition & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -120,83 +120,9 @@
120120
}
121121

122122

123-
PYTHON_STYLES = {
124-
"python.background": Style(),
125-
"python.foreground": Style(),
126-
"python.keyword": Style(),
127-
"python.operator": Style(),
128-
"python.endmarker": Style(),
129-
"python.name": Style(),
130-
"python.number": Style(),
131-
"python.string": Style(),
132-
"python.newline": Style(),
133-
"python.indent": Style(),
134-
"python.dedent": Style(),
135-
"python.lpar": Style(),
136-
"python.rpar": Style(),
137-
"python.lsqb": Style(),
138-
"python.rsqb": Style(),
139-
"python.colon": Style(),
140-
"python.comma": Style(),
141-
"python.semi": Style(),
142-
"python.plus": Style(),
143-
"python.minus": Style(),
144-
"python.star": Style(),
145-
"python.slash": Style(),
146-
"python.vbar": Style(),
147-
"python.amper": Style(),
148-
"python.less": Style(),
149-
"python.greater": Style(),
150-
"python.equal": Style(),
151-
"python.dot": Style(),
152-
"python.percent": Style(),
153-
"python.lbrace": Style(),
154-
"python.rbrace": Style(),
155-
"python.eqequal": Style(),
156-
"python.notequal": Style(),
157-
"python.lessequal": Style(),
158-
"python.greaterequal": Style(),
159-
"python.tilde": Style(),
160-
"python.circumflex": Style(),
161-
"python.leftshift": Style(),
162-
"python.rightshift": Style(),
163-
"python.doublestar": Style(),
164-
"python.plusequal": Style(),
165-
"python.minequal": Style(),
166-
"python.starequal": Style(),
167-
"python.slashequal": Style(),
168-
"python.percentequal": Style(),
169-
"python.amperequal": Style(),
170-
"python.vbarequal": Style(),
171-
"python.circumflexequal": Style(),
172-
"python.leftshiftequal": Style(),
173-
"python.rightshiftequal": Style(),
174-
"python.doublestarequal": Style(),
175-
"python.doubleslash": Style(),
176-
"python.doubleslashequal": Style(),
177-
"python.at": Style(),
178-
"python.atequal": Style(),
179-
"python.rarrow": Style(),
180-
"python.ellipsis": Style(),
181-
"python.colonequal": Style(),
182-
"python.op": Style(),
183-
"python.await": Style(),
184-
"python.async": Style(),
185-
"python.type_ignore": Style(),
186-
"python.type_comment": Style(),
187-
"python.errortoken": Style(),
188-
"python.comment": Style(),
189-
"python.nl": Style(),
190-
"python.encoding": Style(),
191-
"python.n_tokens": Style(),
192-
"python.nt_offset": Style(),
193-
}
194-
195123
DEFAULT_STYLES.update(MARKDOWN_STYLES)
196-
DEFAULT_STYLES.update(PYTHON_STYLES)
197-
198124

199-
if __name__ == "__main__":
125+
if __name__ == "__main__": # pragma: no cover
200126
import token
201127

202128
for name in token.tok_name.values():

0 commit comments

Comments
 (0)