object
PYL-R020568 return wrapped_function
69
70
71class SuccessTrack(object):72 """Use on potential YAYs."""
73
74 def __init__(self, track=None, wait=None):
30 return wrapped_function
31
32
33class ErrorTrack(object):34 """Use on potential oopsies."""
35
36 def __init__(self, track=None, wait=None, ascii_err=False):
7from .utils import _get_track_path, _start_music, _stop_music
8
9
10class WaitingTrack(object):11 """Use on loooong scripts."""
12
13 def __init__(self, track=None):
The class is inheriting from object
, which is implicit under Python 3 , hence can be safely removed from bases.
Not preferred:
class Foo(object):
"""Foo bar baz"""
Preferred:
class Foo:
"""Foo bar baz"""