-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* enable deprecation warning * Add test for Stub() warnings * stub_test -> app_test * run stub warnings * remove stub from markdown fixture * test/stub_composition_test.py -> test/app_composition_test.py * Rebase fix * Enable deprecation warning for app symbol at module level * Fix test (trigger 1 deprecation warning not 2) * Make it pending, set tentative date to 2024-04-26 * push date off to 2024-04-29 * Add deprecation warnings for run_stub, deploy_stub, and serve_stub * Push it off to May 1
- Loading branch information
Showing
11 changed files
with
79 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
# Copyright Modal Labs 2024 | ||
import modal | ||
|
||
stub = modal.Stub() | ||
# Trigger the deprecation warning for the class itself, | ||
# but not the symbol name (see app_was_once_stub_2 for the opposite) | ||
app = modal.Stub() | ||
|
||
|
||
@stub.function() | ||
@app.function() | ||
def foo(): | ||
print("foo") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Copyright Modal Labs 2024 | ||
import modal | ||
|
||
# Don't trigger the deprecation warning for the class itself, | ||
# but there should be a separate deprecation warning because of the symbol name | ||
stub = modal.App() | ||
|
||
|
||
@stub.function() | ||
def foo(): | ||
print("foo") |