mirror of
				https://github.com/KevinMidboe/python-gpiozero.git
				synced 2025-10-29 17:50:37 +00:00 
			
		
		
		
	Additional parameter-type validation
...in line with the property setters
This commit is contained in:
		| @@ -456,8 +456,8 @@ class GPIOQueue(GPIOThread): | |||||||
|         if sample_wait < 0: |         if sample_wait < 0: | ||||||
|             raise BadWaitTime('sample_wait must be 0 or greater') |             raise BadWaitTime('sample_wait must be 0 or greater') | ||||||
|         self.queue = deque(maxlen=queue_len) |         self.queue = deque(maxlen=queue_len) | ||||||
|         self.partial = partial |         self.partial = bool(partial) | ||||||
|         self.sample_wait = sample_wait |         self.sample_wait = float(sample_wait) | ||||||
|         self.full = Event() |         self.full = Event() | ||||||
|         self.parent = weakref.proxy(parent) |         self.parent = weakref.proxy(parent) | ||||||
|         self.average = average |         self.average = average | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user