• R/O
  • SSH

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Castle: The best Real-Time/Embedded/HighTech language EVER. Attempt 2


Commit MetaInfo

修订版135bf69feaf3c570c09b659f3c24a467ccc58fc3 (tree)
时间2023-09-29 18:15:26
作者Albert Mietus < albert AT mietus DOT nl >
CommiterAlbert Mietus < albert AT mietus DOT nl >

Log Message

small refactoring

更改概述

差异

diff -r 81335dd7fa54 -r 135bf69feaf3 castle/aigr/protocols.py
--- a/castle/aigr/protocols.py Fri Sep 29 11:11:02 2023 +0200
+++ b/castle/aigr/protocols.py Fri Sep 29 11:15:26 2023 +0200
@@ -45,7 +45,7 @@
4545 typedParameters: PTH.Optional[PTH.Sequence[TypedParameter]]=()
4646
4747
48-@dataclass
48+@dataclass # pragma: no mutate
4949 class _RootProtocol(Protocol):
5050 """This is the base protocol; it exist as we can't instantiate Protocol"""
5151
diff -r 81335dd7fa54 -r 135bf69feaf3 pytst/aigr/test_2b_protocol.py
--- a/pytst/aigr/test_2b_protocol.py Fri Sep 29 11:11:02 2023 +0200
+++ b/pytst/aigr/test_2b_protocol.py Fri Sep 29 11:15:26 2023 +0200
@@ -58,15 +58,15 @@
5858 def test_protocol_with_Noparms(emptyProtocol):
5959 assert emptyProtocol.typedParameters == ()
6060
61-def test_protocol_with_parm():
62- e = EventProtocol("WithParms", events=[], based_on=None,
61+def test_protocol_with_aParm():
62+ e = EventProtocol("With_a_parm", events=[], based_on=None,
6363 typedParameters=[TypedParameter(name='p', type=float)])
6464 assert len(e.typedParameters) ==1
6565 assert e.typedParameters[0].name == 'p'
6666 assert e.typedParameters[0].type == float
6767
68-def test_protocol_with_parm():
69- e = EventProtocol("WithParms", events=[], based_on=None,
68+def test_protocol_with_4Parms():
69+ e = EventProtocol("With_4_Parms", events=[], based_on=None,
7070 typedParameters=(
7171 TypedParameter(name='p0', type=float ),
7272 TypedParameter(name='p1', type=int ),