chore: avoid implicit optional in type annotations of method (#8727)
This commit is contained in:
parent
b360feb4c1
commit
240b66d737
37 changed files with 91 additions and 71 deletions
|
|
@ -1,3 +1,6 @@
|
|||
from typing import Optional
|
||||
|
||||
|
||||
class BaseServiceError(Exception):
|
||||
def __init__(self, description: str = None):
|
||||
def __init__(self, description: Optional[str] = None):
|
||||
self.description = description
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue