Skip to content

Commit 1a3a6a8

Browse files
Mark positional-only parameters in other functions
1 parent 14cd3f1 commit 1a3a6a8

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Doc/library/time.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Functions
139139
Unlike the C function of the same name, :func:`asctime` does not add a
140140
trailing newline.
141141

142-
.. function:: pthread_getcpuclockid(thread_id)
142+
.. function:: pthread_getcpuclockid(thread_id, /)
143143

144144
Return the *clk_id* of the thread-specific CPU-time clock for the specified *thread_id*.
145145

@@ -158,7 +158,7 @@ Functions
158158

159159
.. versionadded:: 3.7
160160

161-
.. function:: clock_getres(clk_id)
161+
.. function:: clock_getres(clk_id, /)
162162

163163
Return the resolution (precision) of the specified clock *clk_id*. Refer to
164164
:ref:`time-clock-id-constants` for a list of accepted values for *clk_id*.
@@ -168,7 +168,7 @@ Functions
168168
.. versionadded:: 3.3
169169

170170

171-
.. function:: clock_gettime(clk_id) -> float
171+
.. function:: clock_gettime(clk_id, /) -> float
172172

173173
Return the time of the specified clock *clk_id*. Refer to
174174
:ref:`time-clock-id-constants` for a list of accepted values for *clk_id*.
@@ -181,7 +181,7 @@ Functions
181181
.. versionadded:: 3.3
182182

183183

184-
.. function:: clock_gettime_ns(clk_id) -> int
184+
.. function:: clock_gettime_ns(clk_id, /) -> int
185185

186186
Similar to :func:`clock_gettime` but return time as nanoseconds.
187187

@@ -190,7 +190,7 @@ Functions
190190
.. versionadded:: 3.7
191191

192192

193-
.. function:: clock_settime(clk_id, time)
193+
.. function:: clock_settime(clk_id, time, /)
194194

195195
Set the time of the specified clock *clk_id*. Currently,
196196
:data:`CLOCK_REALTIME` is the only accepted value for *clk_id*.
@@ -206,7 +206,7 @@ Functions
206206
Accepts any real number as *time*, not only integer or float.
207207

208208

209-
.. function:: clock_settime_ns(clk_id, time: int)
209+
.. function:: clock_settime_ns(clk_id, time: int, /)
210210

211211
Similar to :func:`clock_settime` but set time with nanoseconds.
212212

@@ -231,7 +231,7 @@ Functions
231231
Accepts any real number, not only integer or float.
232232

233233

234-
.. function:: get_clock_info(name)
234+
.. function:: get_clock_info(name, /)
235235

236236
Get information on the specified clock as a namespace object.
237237
Supported clock names and the corresponding functions to read their value

0 commit comments

Comments
 (0)