fix pylint

This commit is contained in:
Michael Jerger 2023-05-20 16:23:19 +02:00
parent b44751149a
commit ed2f4d5ad0

View file

@ -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: