Skip to content

Commit 310780e

Browse files
committed
fix typos
1 parent 6961c90 commit 310780e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pyslurm/core/reservation.pyx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
# cython: c_string_type=unicode, c_string_encoding=default
2323
# cython: language_level=3
2424

25+
from typing import Union, Any
2526
from pyslurm.utils import cstr
2627
from pyslurm.utils import ctime
2728
from pyslurm.utils.uint import u32_parse
@@ -87,7 +88,7 @@ cdef class Reservations(MultiClusterMap):
8788
# reason a MemoryError is raised after parsing subsequent
8889
# reservations, invalid behaviour will be shown by Valgrind, since
8990
# 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
9192
# with a dummy struct that will be skipped in case of error.
9293
reservations.info.reservation_array[cnt] = reservations.tmp_info
9394

@@ -218,7 +219,7 @@ cdef class Reservation:
218219
def create(self):
219220
"""Create a Reservation.
220221
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
222223
`end_time`, then by default the Reservation will start effective
223224
immediately, with a duration of one year.
224225
@@ -245,7 +246,7 @@ cdef class Reservation:
245246
cdef char* new_name = NULL
246247

247248
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, "
249250
" combined with an end_time or a duration.")
250251

251252
self.name = self._error_or_name()

0 commit comments

Comments
 (0)