Skip to content

Commit fa28b6a

Browse files
committed
add valid() to parameters
1 parent ce5e40d commit fa28b6a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

resources/lib/twitch/api/parameters.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
class _Parameter(object):
66
_valid = []
77

8+
@classmethod
9+
def valid(cls):
10+
return cls._valid
11+
812
@classmethod
913
def validate(cls, value):
1014
if value in cls._valid:

0 commit comments

Comments
 (0)