-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add example to try out pyodide importing classes
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
""" | ||
TODO: this module was created to test importing via Pyodide. | ||
Once that testing is complete, this module should be deleted. | ||
""" | ||
|
||
from . import import_test_2 | ||
|
||
def try_it_out() -> bool: | ||
foo = import_test_2.Foo() | ||
foo.call_me() | ||
return True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
""" | ||
TODO: this module was created to test importing via Pyodide. | ||
Once that testing is complete, this module should be deleted. | ||
""" | ||
|
||
class Foo: | ||
def call_me(self): | ||
print("I was called!") |