GarbageTruck #10
@ -2,12 +2,11 @@ from typing import List
|
||||
|
||||
class GarbageTruck:
|
||||
s473616 marked this conversation as resolved
Outdated
|
||||
position: Tuple[int, int]
|
||||
s473616 marked this conversation as resolved
Outdated
s473616
commented
Tuple zamiast List? Tuple zamiast List?
|
||||
paper: []
|
||||
plastic_and_metal: []
|
||||
glass: []
|
||||
bio: []
|
||||
mixed: []
|
||||
RecognizedGarbage: []
|
||||
paper: List[RecognizedGarbage]
|
||||
s473616
commented
Typ listy: RecognizedGarbage Typ listy: RecognizedGarbage
s473616
commented
chodzi o to, żeby listy śmieci były typowane, czyli np. paper: List[RecognizedGarbage], tak dla wszystkich list chodzi o to, żeby listy śmieci były typowane, czyli np. paper: List[RecognizedGarbage], tak dla wszystkich list
|
||||
plastic_and_metal: List[RecognizedGarbage]
|
||||
glass: List[RecognizedGarbage]
|
||||
bio: List[RecognizedGarbage]
|
||||
mixed: List[RecognizedGarbage]
|
||||
truckSpritePath = 'imgs/dust_car.png'
|
||||
def __init__(self, position: List[int, int]) -> None:
|
||||
self.position = position
|
||||
|
Loading…
Reference in New Issue
Block a user
możesz używać Pascal Case do nazywania klas? Czyli w naszym wypadku "GarbageTruck"