@@ -48,7 +48,7 @@ def __init__(
4848 * ,
4949 field : str | None = None ,
5050 message : str | None = None ,
51- ):
51+ ) -> None :
5252 """Initialize a :class:`.RedditErrorItem` instance.
5353
5454 :param error_type: The error type set on Reddit's end.
@@ -78,7 +78,7 @@ class ClientException(PRAWException):
7878class DuplicateReplaceException (ClientException ):
7979 """Indicate exceptions that involve the replacement of :class:`.MoreComments`."""
8080
81- def __init__ (self ):
81+ def __init__ (self ) -> None :
8282 """Initialize a :class:`.DuplicateReplaceException` instance."""
8383 super ().__init__ (
8484 "A duplicate comment has been detected. Are you attempting to call 'replace_more_comments' more than once?"
@@ -88,7 +88,7 @@ def __init__(self):
8888class InvalidFlairTemplateID (ClientException ):
8989 """Indicate exceptions where an invalid flair template ID is given."""
9090
91- def __init__ (self , template_id : str ):
91+ def __init__ (self , template_id : str ) -> None :
9292 """Initialize an :class:`.InvalidFlairTemplateID` instance."""
9393 super ().__init__ (
9494 f"The flair template ID '{ template_id } ' is invalid. If you are trying to"
@@ -99,15 +99,15 @@ def __init__(self, template_id: str):
9999class InvalidImplicitAuth (ClientException ):
100100 """Indicate exceptions where an implicit auth type is used incorrectly."""
101101
102- def __init__ (self ):
102+ def __init__ (self ) -> None :
103103 """Initialize an :class:`.InvalidImplicitAuth` instance."""
104104 super ().__init__ ("Implicit authorization can only be used with installed apps." )
105105
106106
107107class InvalidURL (ClientException ):
108108 """Indicate exceptions where an invalid URL is entered."""
109109
110- def __init__ (self , url : str , * , message : str = "Invalid URL: {}" ):
110+ def __init__ (self , url : str , * , message : str = "Invalid URL: {}" ) -> None :
111111 """Initialize an :class:`.InvalidURL` instance.
112112
113113 :param url: The invalid URL.
@@ -129,7 +129,7 @@ class ReadOnlyException(ClientException):
129129class TooLargeMediaException (ClientException ):
130130 """Indicate exceptions from uploading media that's too large."""
131131
132- def __init__ (self , * , actual : int , maximum_size : int ):
132+ def __init__ (self , * , actual : int , maximum_size : int ) -> None :
133133 """Initialize a :class:`.TooLargeMediaException` instance.
134134
135135 :param actual: The actual size of the uploaded media.
@@ -146,7 +146,7 @@ def __init__(self, *, actual: int, maximum_size: int):
146146class WebSocketException (ClientException ):
147147 """Indicate exceptions caused by use of WebSockets."""
148148
149- def __init__ (self , message : str ):
149+ def __init__ (self , message : str ) -> None :
150150 """Initialize a :class:`.WebSocketException` instance.
151151
152152 :param message: The exception message.
@@ -158,7 +158,7 @@ def __init__(self, message: str):
158158class MediaPostFailed (WebSocketException ):
159159 """Indicate exceptions where media uploads failed.."""
160160
161- def __init__ (self ):
161+ def __init__ (self ) -> None :
162162 """Initialize a :class:`.MediaPostFailed` instance."""
163163 super ().__init__ (
164164 "The attempted media upload action has failed. Possible causes include the"
@@ -188,7 +188,7 @@ def parse_exception_list(
188188 for exception in exceptions
189189 ]
190190
191- def __init__ (self , items : list [RedditErrorItem | list [str ] | str ]):
191+ def __init__ (self , items : list [RedditErrorItem | list [str ] | str ]) -> None :
192192 """Initialize a :class:`.RedditAPIException` instance.
193193
194194 :param items: Either a list of instances of :class:`.RedditErrorItem` or a list
0 commit comments