@@ -128,7 +128,7 @@ async def prepare(self, query, *, timeout=None):
128
128
"""Create a *prepared statement* for the specified query.
129
129
130
130
:param str query: Text of the query to create a prepared statement for.
131
- :param int timeout: Optional timeout value in seconds.
131
+ :param float timeout: Optional timeout value in seconds.
132
132
133
133
:return: A :class:`~prepared_stmt.PreparedStatement` instance.
134
134
"""
@@ -140,7 +140,7 @@ async def fetch(self, query, *args, timeout=None) -> list:
140
140
141
141
:param str query: Query text.
142
142
:param args: Query arguments.
143
- :param int timeout: Optional timeout value in seconds.
143
+ :param float timeout: Optional timeout value in seconds.
144
144
145
145
:return list: A list of :class:`Record` instances.
146
146
"""
@@ -156,7 +156,7 @@ async def fetchval(self, query, *args, column=0, timeout=None):
156
156
:param args: Query arguments.
157
157
:param int column: Numeric index within the record of the value to
158
158
return (defaults to 0).
159
- :param int timeout: Optional timeout value in seconds.
159
+ :param float timeout: Optional timeout value in seconds.
160
160
If not specified, defaults to the value of
161
161
``command_timeout`` argument to the ``Connection``
162
162
instance constructor.
@@ -175,7 +175,7 @@ async def fetchrow(self, query, *args, timeout=None):
175
175
176
176
:param str query: Query text
177
177
:param args: Query arguments
178
- :param int timeout: Optional timeout value in seconds.
178
+ :param float timeout: Optional timeout value in seconds.
179
179
180
180
:return: The first row as a :class:`Record` instance.
181
181
"""
0 commit comments