Example¶
There is a CLI interface typin/src/typin/typin_cli.py
to execute arbitrary
python code using compile()
and exec()
like this:
python typin_cli.py --stubs=stubs -- example.py 'foo bar baz'
This will compile()/exec()
example.py
with the arguments foo bar baz
and dump out the results. These include the docstrings for the functions in example.py
which
have been inserted in that source code to produce this:
example.py¶
-
class
typin.example.
ExampleClass
(first_name, last_name)[source]¶ An example class with a couple of methods that we exercise.
-
class
typin.example.
InnerClass
(value)[source]¶ Same named inner class to explore inner/outer namespaces.
-
class
typin.example.
MyNT
(a, b, c)¶ -
a
¶ Alias for field number 0
-
b
¶ Alias for field number 1
-
c
¶ Alias for field number 2
-
-
class
typin.example.
OuterClass
(value)[source]¶ Example outer class to explore inner/outer issues.