Skip to content

Glossary: Coding with AI Assistants

Decorator

Also written: decorators

A line starting with `@` just above a `def` that changes how the function is used without changing its code, like `@pytest.mark.parametrize`.

Where the book teaches it

Related terms

parametrize