Skip to content

Commit

Permalink
refact: add type hint in the validate_docs method
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarofpp committed Oct 10, 2020
1 parent b258de4 commit 58f1eb5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions validate_docbr/generic.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import inspect
from typing import List, Tuple
from .BaseDoc import BaseDoc


def validate_docs(documents):
"""Recebe uma lista de tuplas (ClasseDoc, NumeroDoc) e a valida"""
def validate_docs(documents: List[Tuple[BaseDoc, str]] = list):
"""Recebe uma lista de tuplas (classe, valor) e a valida"""
validations = []

for doc in documents:
Expand Down

0 comments on commit 58f1eb5

Please sign in to comment.