Skip to content

Commit

Permalink
Remove a few references to 'Stub'
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaskom committed Nov 20, 2024
1 parent f02016f commit 5da39ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions modal/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ def f(x, y):


class _App:
"""A Modal app (prior to April 2024 a "stub") is a group of functions and classes
deployed together.
"""A Modal App is a group of functions and classes that are deployed together.
The app serves at least three purposes:
Expand Down Expand Up @@ -1083,7 +1082,8 @@ def _reset_container_app(cls):


class _Stub(_App):
"""This enables using an "Stub" class instead of "App".
"""mdmd:hidden
This enables using an "Stub" class instead of "App".
For most of Modal's history, the app class was called "Stub", so this exists for
backwards compatibility, in order to facilitate moving from "Stub" to "App".
Expand Down
3 changes: 1 addition & 2 deletions modal/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,7 @@ class _Function(typing.Generic[P, ReturnType, OriginalReturnType], _Object, type
"""Functions are the basic units of serverless execution on Modal.
Generally, you will not construct a `Function` directly. Instead, use the
`@app.function()` decorator on the `App` object (formerly called "Stub")
for your application.
`App.function()` decorator to register your Python functions with your App.
"""

# TODO: more type annotations
Expand Down

0 comments on commit 5da39ae

Please sign in to comment.