sync from Atlas

This commit is contained in:
Luciano Ramalho
2021-08-25 14:46:57 -03:00
parent b429f217d3
commit dd535abcf7
16 changed files with 51 additions and 62 deletions

View File

@@ -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[]

View File

@@ -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: ...