File: _parser.pyi

package info (click to toggle)
python-aiocsv 1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 220 kB
  • sloc: python: 899; ansic: 714; makefile: 5
file content (17 lines) | stat: -rw-r--r-- 544 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# © Copyright 2020-2025 Mikołaj Kuranowski
# SPDX-License-Identifier: MIT

from typing import AsyncIterator, Awaitable, List

from typing_extensions import Self

from .protocols import DialectLike, WithAsyncRead

class Parser:
    """Return type of the "Parser" function, not accessible from Python."""

    def __new__(cls, reader: WithAsyncRead, dialect: DialectLike) -> Self: ...
    def __aiter__(self) -> AsyncIterator[List[str]]: ...
    def __anext__(self) -> Awaitable[List[str]]: ...
    @property
    def line_num(self) -> int: ...