refactor(gns3server,tests): StrEnum, ASYNC109 and others

This commit is contained in:
Mark Paronyan committed 2026-10-17 12:02:53 +03:00
1 parent b7e6c02647
commit 4c311baabf
54 files changed
+195 -165

No files matched your search

+4 -4
View File
@@ -14,7 +14,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from enum import Enum
from enum import StrEnum
from typing import List, Optional, Union
from uuid import UUID, uuid4
@@ -25,7 +25,7 @@ from ..update import PartialUpdateModel
from .labels import Label
class NodeType(str, Enum):
class NodeType(StrEnum):
"""
Supported node types.
"""
@@ -56,7 +56,7 @@ class Image(BaseModel):
filesize: Optional[int] = None
class LinkType(str, Enum):
class LinkType(StrEnum):
"""
Supported link types.
"""
@@ -65,7 +65,7 @@ class LinkType(str, Enum):
serial = "serial"
class DataLinkType(str, Enum):
class DataLinkType(StrEnum):
"""
Supported data link types.
"""