22
22
# cython: c_string_type=unicode, c_string_encoding=default
23
23
# cython: language_level=3
24
24
25
+ from typing import Union, Any
25
26
from pyslurm.utils import cstr
26
27
from pyslurm.utils import ctime
27
28
from pyslurm.utils.uint import u32_parse
@@ -87,7 +88,7 @@ cdef class Reservations(MultiClusterMap):
87
88
# reason a MemoryError is raised after parsing subsequent
88
89
# reservations, invalid behaviour will be shown by Valgrind, since
89
90
# the Memory for the already parsed Reservation will be freed
90
- # twice. So for all sucessfully parsed Reservations, replace it
91
+ # twice. So for all successfully parsed Reservations, replace it
91
92
# with a dummy struct that will be skipped in case of error.
92
93
reservations.info.reservation_array[cnt] = reservations.tmp_info
93
94
@@ -218,7 +219,7 @@ cdef class Reservation:
218
219
def create (self ):
219
220
""" Create a Reservation.
220
221
221
- If you did not specify atleast a `start_time` and `duration` or
222
+ If you did not specify at least a `start_time` and `duration` or
222
223
`end_time`, then by default the Reservation will start effective
223
224
immediately, with a duration of one year.
224
225
@@ -245,7 +246,7 @@ cdef class Reservation:
245
246
cdef char * new_name = NULL
246
247
247
248
if not self .start_time or not (self .duration and self .end_time):
248
- raise RPCError(msg = " You must atleast specify a start_time, "
249
+ raise RPCError(msg = " You must at least specify a start_time, "
249
250
" combined with an end_time or a duration." )
250
251
251
252
self .name = self ._error_or_name()
0 commit comments