File tree 2 files changed +6
-5
lines changed
python/stack_queue_animal_shelter
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -15,15 +15,16 @@ jobs:
15
15
ci :
16
16
runs-on : ubuntu-latest
17
17
steps :
18
- - uses : actions/checkout@v2
19
- - name : Set up Python 3.9
20
- uses : actions/setup-python@v2
18
+ - uses : actions/checkout@v3
19
+ - name : Set up Python
20
+ uses : actions/setup-python@v4
21
21
with :
22
- python-version : 3.9
22
+ python-version : ' latest '
23
23
- name : Install dependencies
24
24
run : |
25
25
python -m pip install --upgrade pip
26
26
pip install -r requirements.txt
27
+
27
28
working-directory : ./python
28
29
- name : Test with pytest
29
30
run : python3 -m pytest
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def reassign_queues(self):
43
43
# Create a new queue for self.temp2
44
44
self .temp_queue = Queue ()
45
45
46
- def dequeue_12 (self , pref : str ) -> None | str :
46
+ def dequeue_12 (self , pref : str ) -> Union [ 'Animal' ] | None | str :
47
47
if self .shelter_queue .head is None :
48
48
return "Animal Shelter queue is empty"
49
49
You can’t perform that action at this time.
0 commit comments