-
Notifications
You must be signed in to change notification settings - Fork 503
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix backwards compatibility for union (#214)
In python 3.9 and below you can't do something like str | None in the type definition of a function's arguments. However, this can be fixed by using __future__. Python stores the annotations as strings and doesn't try to evaluate them. This allows you to write type hints using Python 3.10's syntax in a Python 3.9 environment. When the code is actually run, the annotations aren't evaluated, so there's no issue with the interpreter not understanding the | operator for union types. I checked and the | is only in this one file, elsewhere we are using Union. I replaced the | with Unions to make it consistent.
- e2b@1.0.7
- e2b@1.0.6
- e2b@1.0.5
- e2b@1.0.4
- e2b@1.0.3
- e2b@1.0.1
- e2b@1.0.0
- e2b@0.16.2
- e2b@0.16.1
- e2b@0.16.0
- e2b@0.15.0
- e2b@0.14.0
- e2b@0.13.2
- e2b@0.13.1
- e2b@0.13.0
- e2b@0.12.7
- e2b@0.12.6
- e2b@0.12.5
- e2b@0.12.4
- e2b@0.12.3
- e2b@0.12.2
- e2b@0.12.1
- e2b@0.12.0
- @e2b/sdk@0.11.20
- @e2b/sdk@0.11.19
- @e2b/sdk@0.11.18
- @e2b/sdk@0.11.17
- @e2b/sdk@0.11.16
- @e2b/sdk@0.11.15
- @e2b/sdk@0.11.14
- @e2b/sdk@0.11.13
- @e2b/sdk@0.11.12
- @e2b/sdk@0.11.11
- @e2b/sdk@0.11.10
- @e2b/sdk@0.11.9
- @e2b/sdk@0.11.8
- @e2b/sdk@0.11.7
- @e2b/sdk@0.11.6
- @e2b/sdk@0.11.5
- @e2b/sdk@0.11.4
- @e2b/sdk@0.11.3
- @e2b/sdk@0.11.2
- @e2b/sdk@0.11.1
- @e2b/sdk@0.11.0
- @e2b/sdk@0.10.0
- @e2b/sdk@0.9.1
- @e2b/sdk@0.9.0
- @e2b/sdk@0.8.8
- @e2b/sdk@0.8.7
- @e2b/sdk@0.8.6
- @e2b/sdk@0.8.5
- @e2b/sdk@0.8.4
- @e2b/sdk@0.8.3
- @e2b/sdk@0.8.2
- @e2b/python-sdk@1.1.0
- @e2b/python-sdk@1.0.6
- @e2b/python-sdk@1.0.5
- @e2b/python-sdk@1.0.4
- @e2b/python-sdk@1.0.3
- @e2b/python-sdk@1.0.2
- @e2b/python-sdk@1.0.1
- @e2b/python-sdk@1.0.0
- @e2b/python-sdk@0.17.1
- @e2b/python-sdk@0.17.0
- @e2b/python-sdk@0.16.0
- @e2b/python-sdk@0.15.0
- @e2b/python-sdk@0.14.14
- @e2b/python-sdk@0.14.13
- @e2b/python-sdk@0.14.12
- @e2b/python-sdk@0.14.11
- @e2b/python-sdk@0.14.10
- @e2b/python-sdk@0.14.9
- @e2b/python-sdk@0.14.8
- @e2b/python-sdk@0.14.7
- @e2b/python-sdk@0.14.6
- @e2b/python-sdk@0.14.5
- @e2b/python-sdk@0.14.4
- @e2b/python-sdk@0.14.3
- @e2b/python-sdk@0.14.2
- @e2b/python-sdk@0.14.1
- @e2b/python-sdk@0.14.0
- @e2b/python-sdk@0.13.19
- @e2b/python-sdk@0.13.18
- @e2b/python-sdk@0.13.17
- @e2b/python-sdk@0.13.16
- @e2b/python-sdk@0.13.15
- @e2b/python-sdk@0.13.14
- @e2b/python-sdk@0.13.13
- @e2b/python-sdk@0.13.12
- @e2b/python-sdk@0.13.11
- @e2b/python-sdk@0.13.10
- @e2b/python-sdk@0.13.9
- @e2b/python-sdk@0.13.8
- @e2b/python-sdk@0.13.7
- @e2b/python-sdk@0.13.6
- @e2b/python-sdk@0.13.5
- @e2b/python-sdk@0.13.4
- @e2b/python-sdk@0.13.3
- @e2b/python-sdk@0.13.2
- @e2b/python-sdk@0.13.1
- @e2b/python-sdk@0.13.0
- @e2b/python-sdk@0.12.0
- @e2b/python-sdk@0.11.0
- @e2b/python-sdk@0.10.9
- @e2b/python-sdk@0.10.8
- @e2b/python-sdk@0.10.7
- @e2b/python-sdk@0.10.6
- @e2b/python-sdk@0.10.5
- @e2b/python-sdk@0.10.4
- @e2b/python-sdk@0.10.3
- @e2b/python-sdk@0.10.2
- @e2b/cli@1.2.2
- @e2b/cli@1.2.1
- @e2b/cli@1.2.0
- @e2b/cli@1.1.0
- @e2b/cli@1.0.10
- @e2b/cli@1.0.9
- @e2b/cli@1.0.8
- @e2b/cli@1.0.7
- @e2b/cli@1.0.6
- @e2b/cli@1.0.5
- @e2b/cli@1.0.4
- @e2b/cli@1.0.3
- @e2b/cli@1.0.2
- @e2b/cli@1.0.1
- @e2b/cli@1.0.0
- @e2b/cli@0.5.12
- @e2b/cli@0.5.11
- @e2b/cli@0.5.10
- @e2b/cli@0.5.9
- @e2b/cli@0.5.8
- @e2b/cli@0.5.7
- @e2b/cli@0.5.6
- @e2b/cli@0.5.5
- @e2b/cli@0.5.4
- @e2b/cli@0.5.3
- @e2b/cli@0.5.2
- @e2b/cli@0.5.1
- @e2b/cli@0.5.0
- @e2b/cli@0.4.8
- @e2b/cli@0.4.7
- @e2b/cli@0.4.6
- @e2b/cli@0.4.5
- @e2b/cli@0.4.4
- @e2b/cli@0.4.3
- @e2b/cli@0.4.2
- @e2b/cli@0.4.1
- @e2b/cli@0.4.0
- @e2b/cli@0.3.5
- @e2b/cli@0.3.4
- @e2b/cli@0.3.3
- @e2b/cli@0.3.2
- @e2b/cli@0.3.1
- @e2b/cli@0.3.0
- @e2b/cli@0.2.0
- @e2b/cli@0.1.23
- @e2b/cli@0.1.22
- @e2b/cli@0.1.21
- @e2b/cli@0.1.20
- @e2b/cli@0.1.19
- @e2b/cli@0.1.18
- @e2b/cli@0.1.17
- @e2b/cli@0.1.16
- @e2b/cli@0.1.15
- @e2b/cli@0.1.14
- @e2b/cli@0.1.13
- @e2b/cli@0.1.12
- @e2b/cli@0.1.11
- @e2b/cli@0.1.10
- @e2b/cli@0.1.9
- @e2b/cli@0.1.8
- @e2b/cli@0.1.7
- @e2b/cli@0.1.6
- @e2b/cli@0.1.5
- @e2b/cli@0.1.4
- @e2b/cli@0.1.3
Showing
2 changed files
with
9 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@e2b/python-sdk": patch | ||
--- | ||
|
||
Fix Python 3.8 compatibility |
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