Skip to content

Chapter 3: Undefined names in Python code #13

@cclauss

Description

@cclauss

% flake8 . --count --select=E9,F63,F7,F82,Y --show-source --statistics

./Chapter03/ip-address-pattern.py:7:2: F821 undefined name 'app'
@app.get(f"/<ip:{IP_ADDRESS_PATTERN}>")
 ^
./Chapter03/ip-address-pattern.py:8:35: F821 undefined name 'Request'
async def get_ip_details(request: Request, ip: str):
                                  ^
./Chapter03/ip-address-pattern.py:9:12: F821 undefined name 'text'
    return text(f"type={type(ip)} {ip=}")
           ^
3     F821 undefined name 'app'
3

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions