{ } Raw JSON

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))
✗
[<matplotlib.lines.Line2D object at 0x7f4cb10d57f0>]
And now
ax.plot(range(5, 15))
✗
[<matplotlib.lines.Line2D object at 0x7f4cb10d4980>]
plt.show()
✓
fig-cb0abad1d04ebed0.png

Aliases

  • papyri.examples.example1