Allow float offset values
This commit is contained in:
parent
f767342e13
commit
c996e5c9be
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ class Playlist_Item(object):
|
|||
|
||||
@offset.setter
|
||||
def offset(self, value):
|
||||
if not isinstance(value, int) and value is not None:
|
||||
if not isinstance(value, (int, float)) and value is not None:
|
||||
raise TypeError('Passed %s instead of int!' % type(value))
|
||||
self._offset = value
|
||||
|
||||
|
|
Loading…
Reference in a new issue