Skip to content

Commit

Permalink
Removed unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Teddy-1000 committed Jan 22, 2024
1 parent ec8b581 commit 1b167cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions api/formatters/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from pydantic import BaseModel, validator
import importlib
import pkgutil
import logging
Expand All @@ -16,8 +15,10 @@ def get_EDR_formatters() -> dict:
"""
available_formatters = {}

formatter_plugins = [importlib.import_module("formatters."+i.name) for i in pkgutil.iter_modules(
formatters.__path__) if i.name != "base_formatter"]
formatter_plugins = [
importlib.import_module("formatters."+i.name)
for i in pkgutil.iter_modules(formatters.__path__)
if i.name != "base_formatter"]
logger.info(f"Loaded plugins : {formatter_plugins}")
for formatter_module in formatter_plugins:
# Make instance of formatter and save
Expand Down
2 changes: 1 addition & 1 deletion api/routers/edr.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# from edr_pydantic.collections import Collection
# from edr_pydantic.collections import Collections
from fastapi import APIRouter, Depends
from fastapi import APIRouter
# from fastapi import HTTPException
from fastapi import Path
from fastapi import Query
Expand Down

0 comments on commit 1b167cf

Please sign in to comment.