coluto v1.0.41

- fixed unsupported syntax (optional[])

work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3883] and needed to decommission r630[abc] for [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=4466]
This commit is contained in:
Guillaume Raffy 2026-09-07 23:45:57 +02:00
parent f715b0c6e5
commit 8caac5a4c8
2 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ class Port(object):
"""
name: PortName # the unique id of the port within the machine's ports, eg 'oob', 'p48'
machine: Machine # the id of the machine this network port belongs to, eg 'r640b'
bandwidth: optional[float] # the maximum bandwidth of the port in bits per second
bandwidth: float | None # the maximum bandwidth of the port in bits per second
net_config: 'NetConfig'
def __init__(self, name: PortName, machine: Machine, net_config: 'NetConfig'):
@ -93,7 +93,7 @@ class Port(object):
machine_name = port_as_str[0:-(len(port_name) + 1)]
return machine_name, port_name
def get_bandwidth(self) -> optional[float]:
def get_bandwidth(self) -> float | None:
assert self.bandwidth is not None, f'failed to get the bandwith of {self}'
return self.bandwidth

View File

@ -1,4 +1,4 @@
__version__ = '1.0.4'
__version__ = '1.0.41'
class Version(object):