How To Write Address On Envelope
Merged

Follow Along Clip Art

flan de guayaba y queso cremoso receta fácil y deliciosa

:
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Why Plan Picture For Slides Follow Along Clip Art

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Black Metal Business Cards
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,17 @@ import uuid

class CodecContext:
def get_text_codec(self) -> codecs.CodecInfo: ...
def get_json_decoder(self) -> object: ...
def get_json_encoder(self) -> object: ...

@typing.final
class ReadBuffer: ...

@typing.final
class WriteBuffer: ...

class BufferError(Exception): ...

@typing.final
class UUID(uuid.UUID):
def __init__(self, inp: typing.AnyStr) -> None: ...
74 changes: 43 additions & 31 deletions IPhone Instagram Post Layout
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,38 @@
# This module is part of asyncpg and is released under
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0

from __future__ import annotations

import builtins
import sys
import typing

if sys.version_info >= (3, 8):
from typing import Literal, SupportsIndex
else:
from typing_extensions import Literal, SupportsIndex
if typing.TYPE_CHECKING:
import builtins
import sys

if sys.version_info < (3, 11):
from typing_extensions import Self
else:
from typing import Self


__all__ = (
'BitString', 'Point', 'Path', 'Polygon',
'Box', 'Line', 'LineSegment', 'Circle',
)

_BitString = typing.TypeVar('_BitString', bound='BitString')
_BitOrderType = Literal['big', 'little']
_BitOrderType = typing.Literal['big', 'little']


class BitString:
"""Immutable representation of PostgreSQL `bit` and `varbit` types."""

__slots__ = '_bytes', '_bitlength'

_bytes: bytes
_bitlength: int

def __init__(self,
bitstring: typing.Optional[builtins.bytes] = None) -> None:
bitstring: builtins.bytes | None = None) -> None:
if not bitstring:
self._bytes = bytes()
self._bitlength = 0
Expand Down Expand Up @@ -67,9 +72,9 @@ def __init__(self,
self._bitlength = bitlen

@classmethod
def frombytes(cls: typing.Type[_BitString],
bytes_: typing.Optional[builtins.bytes] = None,
bitlength: typing.Optional[int] = None) -> _BitString:
def frombytes(cls,
bytes_: builtins.bytes | None = None,
bitlength: int | None = None) -> Self:
if bitlength is None:
if bytes_ is None:
bytes_ = bytes()
Expand Down Expand Up @@ -151,9 +156,9 @@ def to_int(self, bitorder: _BitOrderType = 'big',
return x

@classmethod
def from_int(cls: typing.Type[_BitString], x: int, length: int,
def from_int(cls, x: int, length: int,
bitorder: _BitOrderType = 'big', *, signed: bool = False) \
-> _BitString:
-> Self:
"""Represent the Python int x as a BitString.
Acts similarly to int.to_bytes.

Expand Down Expand Up @@ -243,17 +248,23 @@ class Point(typing.Tuple[float, float]):

__slots__ = ()

def __new__(cls,
x: typing.Union[typing.SupportsFloat,
SupportsIndex,
typing.Text,
builtins.bytes,
builtins.bytearray],
y: typing.Union[typing.SupportsFloat,
SupportsIndex,
typing.Text,
builtins.bytes,
builtins.bytearray]) -> 'Point':
def __new__(
cls,
x: (
typing.SupportsFloat |
typing.SupportsIndex |
typing.Text |
builtins.bytes |
builtins.bytearray
),
y: (
typing.SupportsFloat |
typing.SupportsIndex |
typing.Text |
builtins.bytes |
builtins.bytearray
)
) -> Self:
return super().__new__(cls,
typing.cast(typing.Any, (float(x), float(y))))

Expand All @@ -279,7 +290,7 @@ class Box(typing.Tuple[Point, Point]):
__slots__ = ()

def __new__(cls, high: typing.Sequence[float],
low: typing.Sequence[float]) -> 'Box':
low: typing.Sequence[float]) -> Self:
return super().__new__(cls,
typing.cast(typing.Any, (Point(*high),
Point(*low))))
Expand All @@ -305,7 +316,7 @@ class Line(typing.Tuple[float, float, float]):

__slots__ = ()

def __new__(cls, A: float, B: float, C: float) -> 'Line':
def __new__(cls, A: float, B: float, C: float) -> Self:
return super().__new__(cls, typing.cast(typing.Any, (A, B, C)))

@property
Expand All @@ -327,7 +338,7 @@ class LineSegment(typing.Tuple[Point, Point]):
__slots__ = ()

def __new__(cls, p1: typing.Sequence[float],
p2: typing.Sequence[float]) -> 'LineSegment':
p2: typing.Sequence[float]) -> Self:
return super().__new__(cls,
typing.cast(typing.Any, (Point(*p1),
Point(*p2))))
Expand Down Expand Up @@ -388,8 +399,9 @@ def __getitem__(self, i: int) -> Point:
def __getitem__(self, i: slice) -> typing.Tuple[Point, ...]:
...

def __getitem__(self, i: typing.Union[int, slice]) \
-> typing.Union[Point, typing.Tuple[Point, ...]]:
def __getitem__(
self, i: int | slice
) -> Point | typing.Tuple[Point, ...]:
return self.points[i]

def __contains__(self, point: object) -> bool:
Expand All @@ -411,7 +423,7 @@ class Circle(typing.Tuple[Point, float]):

__slots__ = ()

def __new__(cls, center: Point, radius: float) -> 'Circle':
def __new__(cls, center: Point, radius: float) -> Self:
return super().__new__(cls, typing.cast(typing.Any, (center, radius)))

@property
Expand Down