Skip to content

Bug in stub for tokenize.py #3515

@gvanrossum

Description

@gvanrossum

The type of tokenize.generate_tokens() is stated as a callable returning bytes (same as tokenize.tokenize()), but actually the (only) difference between the two is that generate_tokens() works on str, not bytes. (UPDATE: The return type is the same either way -- TokenInfo contains str values.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions