From ce9aaff0048f3ecfcfe243d31cf6a3e41beb0e90 Mon Sep 17 00:00:00 2001 From: GuoWQ222 Date: Mon, 4 Mar 2024 19:17:07 +0800 Subject: [PATCH] Fix Python CAPI Bug --- CAPI/python/PyAPI/constants.py | 3 --- CAPI/python/PyAPI/utils.py | 1 - 2 files changed, 4 deletions(-) diff --git a/CAPI/python/PyAPI/constants.py b/CAPI/python/PyAPI/constants.py index 0ad4d3b5..ed186e7a 100644 --- a/CAPI/python/PyAPI/constants.py +++ b/CAPI/python/PyAPI/constants.py @@ -1,9 +1,6 @@ from ast import Constant from asyncio import constants -class NoInstance: - def __call__(self): - raise TypeError("This class cannot be instantiated") class Constants(NoInstance): frameDuration=50 diff --git a/CAPI/python/PyAPI/utils.py b/CAPI/python/PyAPI/utils.py index 27aa4167..2d7bca9a 100644 --- a/CAPI/python/PyAPI/utils.py +++ b/CAPI/python/PyAPI/utils.py @@ -435,7 +435,6 @@ def THUAI72ProtobufConstructMsg( ) @staticmethod - def THUAI72ProtobufAttackMsg( def THUAI72ProtobufAttackMsg( playerID: int, teamID: int, angle: float ) -> Message2Server.AttackMsg: