-
-
Notifications
You must be signed in to change notification settings - Fork 348
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15c19fd
commit 4d2f7af
Showing
3 changed files
with
114 additions
and
109 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
Any attempt to inherit from :class:`CancelScope` now raises TypeError. | ||
(Trio has never been able to safely support subclassing here; | ||
this change just makes it more obvious.) | ||
Any attempt to inherit from `CancelScope` or `Nursery` now raises | ||
`TypeError`. (Trio has never been able to safely support subclassing | ||
here; this change just makes it more obvious.) | ||
Also exposed as public classes for type-checking, etc. |
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