fix pylint
This commit is contained in:
parent
b44751149a
commit
ed2f4d5ad0
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
from enum import Enum
|
||||
from typing import List
|
||||
from typing import List, Optional
|
||||
from inflection import underscore
|
||||
from .common import (
|
||||
Validateable,
|
||||
|
@ -44,7 +44,9 @@ class CredentialMapping(Validateable):
|
|||
|
||||
|
||||
class Credentials(Validateable):
|
||||
def __init__(self, inp: dict, default_mappings: list = []):
|
||||
def __init__(self, inp: dict, default_mappings: Optional[List] = None):
|
||||
if default_mappings is None:
|
||||
default_mappings = []
|
||||
inp_mappings = inp.get("credentials_mapping", [])
|
||||
self.mappings = {}
|
||||
for inp_mapping in default_mappings:
|
||||
|
|
Loading…
Reference in a new issue