Skip to content

Commit 235e305

Browse files
author
Aron Fischer
committed
a str is a string
1 parent c0b1576 commit 235e305

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

manim/utils/tex.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def add_to_document(self, txt):
116116
117117
Parameters
118118
----------
119-
txt : :class:`string`
119+
txt : :class:`str`
120120
String containing the text to be added.
121121
"""
122122
self.post_doc_commands += "\n" + txt + "\n"
@@ -127,12 +127,12 @@ def get_texcode_for_expression(self, expression):
127127
128128
Parameters
129129
----------
130-
expression : :class:`string`
130+
expression : :class:`str`
131131
The string containing the expression to be typeset, e.g. ``$\\sqrt{2}$``
132132
133133
Returns
134134
-------
135-
:class:`string`
135+
:class:`str`
136136
LaTeX code based on current template, containing the given ``expression`` and ready for typesetting
137137
"""
138138
return self.body.replace(self.placeholder_text, expression)
@@ -142,14 +142,14 @@ def get_texcode_for_expression_in_env(self, expression, environment):
142142
143143
Parameters
144144
----------
145-
expression : :class:`string`
145+
expression : :class:`str`
146146
The string containing the expression to be typeset, e.g. ``$\\sqrt{2}$``
147147
environment : :class:`str`
148148
The string containing the environment in which the expression should be typeset, e.g. ``align*``
149149
150150
Returns
151151
-------
152-
:class:`string`
152+
:class:`str`
153153
LaTeX code based on template, containing the given expression inside its environment, ready for typesetting
154154
"""
155155
begin = r"\begin{" + environment + "}"

0 commit comments

Comments
 (0)