Skip to content

for loop typing #1374

@Godwhitelight

Description

@Godwhitelight

The idea is to add typing to a for loop argument like described bellow.

for ans: RR in resp.rr:
    answers.append(ans)
    if ans.rtype in QTYPE:
        db_record = data.DatabaseRecord(int(ans.rtype), str(ans.rname),
                                        str(ans.rdata), int(ans.rclass),
                                        int(ans.ttl), is_cached=True)
        cache(db_record)

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: featureDiscussions about new features for Python's type annotations

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions