| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/RustPython/RustPython/main/examples/package_embed.py | [Back] [Original] |
from dataclasses import dataclass
from typing import Any
__all__ = ["context"]
@dataclass
class Context:
name: str
something: Any
_context = Context(
name="test name",
something=None,
)
def context() -> Context:
return _context
if __name__ == "__main__":
print(context().name)
| Web Proxy Viewer | New URL | Original Page |