Clean code

This commit is contained in:
WQY\qiong
2023-04-30 18:32:05 +08:00
parent 23cb1fe0e8
commit 0656dbe83b
2 changed files with 3 additions and 2 deletions

View File

@@ -6216,8 +6216,10 @@ class TestApi:
self.leave(p) self.leave(p)
# 37 virtual_district # 37 virtual_district
def test_virtual_district(self): def test_virtual_district(self):
p = 'test_virtual_district' p = 'test_virtual_district'
read_inp(p, f'./inp/net3.inp', '3') read_inp(p, f'./inp/net3.inp', '3')

View File

@@ -1008,6 +1008,5 @@ def distribute_demand_to_region(name: str, demand: float, region: str, type: str
# virtual_district 37 # virtual_district 37
############################################################ ############################################################
# parent is whole network def calculate_virtual_district(name: str, centers: list[str]) -> dict[str, list[Any]]:
def calculate_virtual_district(name: str, centers: list[str]) -> dict[str, Any]:
return api.calculate_virtual_district(name, centers) return api.calculate_virtual_district(name, centers)