bundles / papyri latest / papyri / examples / example1
function
papyri.examples:example1
source: /papyri/examples.py :267
Signature
async def example1 ( pos : int , only : None , / , var : float | bool , args : int = 1 , * , kwarg : Any , also : Any = None , ** kwargs : Any ) → str | None Summary
first example.
Extended Summary
in this example, pos and only are respectively int and None, that is positional only.
Here are various things that should link to cpython docs.
print, os,
Examples
import matplotlib.pyplot as plt fig, ax = plt.subplots()✓
ax.plot(range(10))
✗ax.plot(range(5, 15))
✗plt.show()
✓
Aliases
-
papyri.examples.example1