FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
RustPython/examples/package_embed.py at main · RustPython/RustPython · GitHub
RustPython
RustPython
Repository navigation
Code
Issues
184
(184)
Pull requests
111
(111)
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
RustPython
/
examples
/
package_embed.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (15 loc) · 310 Bytes
Breadcrumbs
RustPython
/
examples
/
package_embed.py
Copy path
File metadata and controls
24 lines (15 loc) · 310 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
)
Back
|
FazBrowse Home
|
New Git URL