Skip to content

Commit

Permalink
Change template typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Hironsan committed Jul 20, 2023
1 parent 9383329 commit f350cce
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions auto_labeling_pipeline/mappings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import json
import pathlib
from typing import Any, Dict, Optional, Type
from typing import Any, Dict, Type

from jinja2 import Template

Expand All @@ -13,11 +13,10 @@ class MappingTemplate:
label_collection: Type[Labels]
template_file: str = ''

def __init__(self, label_collection: Type[Labels] = Labels, template: Optional[str] = ''):
def __init__(self, label_collection: Type[Labels] = Labels, template: str = ''):
if self.template_file:
template = self.load()
if template:
self.template = template
self.template = template
if label_collection is not Labels:
self.label_collection = label_collection

Expand Down

0 comments on commit f350cce

Please sign in to comment.