sync from Atlas
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# tag::ABS_DEMO[]
|
||||
import math
|
||||
from typing import NamedTuple, SupportsAbs
|
||||
|
||||
@@ -31,4 +28,3 @@ assert is_unit(v3)
|
||||
assert is_unit(v4)
|
||||
|
||||
print('OK')
|
||||
# end::ABS_DEMO[]
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# tag::MYMAX_TYPES[]
|
||||
from typing import Protocol, Any, TypeVar, overload, Callable, Iterable, Union
|
||||
from collections.abc import Callable, Iterable
|
||||
from typing import Protocol, Any, TypeVar, overload, Union
|
||||
|
||||
class SupportsLessThan(Protocol):
|
||||
def __lt__(self, other: Any) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user