MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / __init__

Method __init__

projects/Python/proto/test.py:7376–7400  ·  view source on GitHub ↗
(self, parent=None, f1000=None, f1001=None, f1002=EnumTyped.ENUM_VALUE_2, f1003=None, f1004=None, f1005=None, f1006=FlagsTyped.FLAG_VALUE_2 | FlagsTyped.FLAG_VALUE_4 | FlagsTyped.FLAG_VALUE_6, f1007=None, f1008=None, f1009=None, f1010=None, f1011=None)

Source from the content-addressed store, hash-verified

7374 __slots__ = "f1000", "f1001", "f1002", "f1003", "f1004", "f1005", "f1006", "f1007", "f1008", "f1009", "f1010", "f1011",
7375
7376 def __init__(self, parent=None, f1000=None, f1001=None, f1002=EnumTyped.ENUM_VALUE_2, f1003=None, f1004=None, f1005=None, f1006=FlagsTyped.FLAG_VALUE_2 | FlagsTyped.FLAG_VALUE_4 | FlagsTyped.FLAG_VALUE_6, f1007=None, f1008=None, f1009=None, f1010=None, f1011=None):
7377 super().__init__()
7378 if parent is None:
7379 parent = StructOptional()
7380 super().copy(parent)
7381 if f1000 is None:
7382 f1000 = EnumSimple()
7383 if f1004 is None:
7384 f1004 = FlagsSimple()
7385 if f1008 is None:
7386 f1008 = StructSimple()
7387 if f1010 is None:
7388 f1010 = StructOptional()
7389 self.f1000 = f1000
7390 self.f1001 = f1001
7391 self.f1002 = f1002
7392 self.f1003 = f1003
7393 self.f1004 = f1004
7394 self.f1005 = f1005
7395 self.f1006 = f1006
7396 self.f1007 = f1007
7397 self.f1008 = f1008
7398 self.f1009 = f1009
7399 self.f1010 = f1010
7400 self.f1011 = f1011
7401
7402 # Struct shallow copy
7403 def copy(self, other):

Callers

nothing calls this directly

Calls 6

StructOptionalClass · 0.70
EnumSimpleClass · 0.70
FlagsSimpleClass · 0.70
StructSimpleClass · 0.70
__init__Method · 0.45
copyMethod · 0.45

Tested by

no test coverage detected