"""
Auto-generated Python stub file from main.py
Module: main
"""

import c


import t
import t as tt
import stdio
import testcheck
from t import CEnum as en
from t import CUnion as un
from t import REnum as ren
from t import CStruct as cs
from t import CInt as myint
from t import CChar, CPtr

class Color(en):
    Red = 0
    Green = 1
    Blue = 2
class Status(tt.CEnum):
    Ok = 0
    Error = 1
class Data(un):
    i_val: t.CInt
    f_val: t.CFloat
class Opt(ren):
    class Some:
        val: myint
    None_ = 0
class Parent:
    a: t.CInt
    def get_a(self: Parent) -> t.CInt: pass
class Child(Parent):
    b: t.CInt
    def get_sum(self: Child) -> t.CInt: pass
class Base:
    x: t.CInt
    def base_val(self: Base) -> t.CInt: pass
class Mid(Base):
    y: t.CInt
    def mid_val(self: Mid) -> t.CInt: pass
class Leaf(Mid):
    z: t.CInt
    def leaf_val(self: Leaf) -> t.CInt: pass

val: t.CExtern | myint

class NetHeader:
    magic: t.CInt | t.BigEndian
    length: t.CShort | t.BigEndian
    normal: t.CInt
class TtPoint(tt.CStruct):
    x: t.CInt
    y: t.CInt
@tt.Object
class TtObject:
    val: t.CInt
    def get_val(self: TtObject) -> t.CInt: pass
class CsPoint(cs):
    x: t.CInt
    y: t.CInt
class TtUnion(tt.CUnion):
    a: t.CInt
    b: t.CFloat
@tt.Object
class TtEmptyObject:
    val: t.CInt

def main() -> t.CInt: pass
