将 from app.services.tjnetwork import * 改为显式导入

This commit is contained in:
2026-03-09 17:51:12 +08:00
parent c946e1b58b
commit 8c7d77e6ee
38 changed files with 845 additions and 38 deletions
+10 -1
View File
@@ -1,6 +1,15 @@
from fastapi import APIRouter, Request
from typing import Any, List, Dict, Union
from app.services.tjnetwork import *
from app.services.tjnetwork import (
Any,
ChangeSet,
calculate_demand_to_network,
calculate_demand_to_nodes,
calculate_demand_to_region,
get_demand,
get_demand_schema,
set_demand,
)
router = APIRouter()