Remove bool() * 2

pull/146/head
cclauss 2018-03-26 04:55:11 +02:00 committed by GitHub
parent 9ed18114fa
commit 890a2673f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ class Car(Vehicle):
super(Car, self).__init__(VehicleSize.COMPACT, license_plate, spot_size=1)
def can_fit_in_spot(self, spot):
return bool(spot.size in (VehicleSize.LARGE, VehicleSize.COMPACT))
return spot.size in (VehicleSize.LARGE, VehicleSize.COMPACT)
class Bus(Vehicle):
@ -54,7 +54,7 @@ class Bus(Vehicle):
super(Bus, self).__init__(VehicleSize.LARGE, license_plate, spot_size=5)
def can_fit_in_spot(self, spot):
return bool(spot.size == VehicleSize.LARGE)
return spot.size == VehicleSize.LARGE
class ParkingLot(object):