mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-16 03:24:54 +08:00
Use PEP 585 syntax in Python 2, protobuf & _ast stubs, where possible (#6949)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import asyncore
|
||||
import socket
|
||||
from abc import abstractmethod
|
||||
from typing import Sequence, Tuple
|
||||
from typing import Sequence
|
||||
|
||||
class simple_producer:
|
||||
def __init__(self, data: bytes, buffer_size: int = ...) -> None: ...
|
||||
@@ -34,4 +34,4 @@ class fifo:
|
||||
def is_empty(self) -> bool: ...
|
||||
def first(self) -> bytes: ...
|
||||
def push(self, data: bytes | simple_producer) -> None: ...
|
||||
def pop(self) -> Tuple[int, bytes]: ...
|
||||
def pop(self) -> tuple[int, bytes]: ...
|
||||
|
||||
Reference in New Issue
Block a user