lots of typing fixes
This commit is contained in:
parent
51f580a304
commit
3665c34961
43 changed files with 260 additions and 178 deletions
|
@ -1,5 +1,5 @@
|
|||
import builtins
|
||||
from typing import List, Iterable
|
||||
from typing import List, Iterable, Dict, Any, Optional
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
@ -26,7 +26,7 @@ class Bridgelines(BaseModel):
|
|||
title = "Bridgelines Version 1"
|
||||
|
||||
|
||||
def bridgelines(*, distribution_method: str = None):
|
||||
def bridgelines(*, distribution_method: Optional[str] = None) -> Dict[str, Any]:
|
||||
bridges: Iterable[Bridge] = Bridge.query.filter(
|
||||
Bridge.destroyed == None,
|
||||
Bridge.deprecated == None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue