Skip to content

Commit

Permalink
Mypy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
multimeric committed Aug 14, 2024
1 parent 9b24f7d commit 903518b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions codegen/id_mapping/generate.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ast
from collections import defaultdict
from dataclasses import dataclass, field
from typing import List
from typing import List, Optional

import black
import requests
Expand Down Expand Up @@ -42,7 +42,7 @@ def make_function(
ast.Subscript(ast.Name("Iterable"), ast.Name("str")),
),
]
defaults: list[ast.expr | None] = [None, None, None]
defaults: list[Optional[ast.expr]] = [None, None, None]

if taxon_id:
# taxon_id: Optional[str] = None
Expand Down Expand Up @@ -106,7 +106,7 @@ def to_function(self) -> ast.FunctionDef:


@app.command()
def main():
def main() -> None:
rules: defaultdict[int, Rule] = defaultdict(Rule)

# Build up a list of rules
Expand Down

0 comments on commit 903518b

Please sign in to comment.