| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8ca0831 commit e892537
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -406,10 +406,10 @@ Initially :pep:`484` defined Python static type system as using | |||
| 406 | 406 | a class ``B`` is expected if and only if ``A`` is a subclass of ``B``. | |
| 407 | 407 | ||
| 408 | 408 | This requirement previously also applied to abstract base classes, such as | |
| 409 | - :class:`Iterable`. The problem with this approach is that a class had | ||
| 409 | + :class:`~collections.abc.Iterable`. The problem with this approach is that a class had | ||
| 410 | 410 | to be explicitly marked to support them, which is unpythonic and unlike | |
| 411 | 411 | what one would normally do in idiomatic dynamically typed Python code. | |
| 412 | - For example, this conforms to the :pep:`484`:: | ||
| 412 | + For example, this conforms to :pep:`484`:: | ||
| 413 | 413 | ||
| 414 | 414 | from collections.abc import Sized, Iterable, Iterator | |
| 415 | 415 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments