mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 14:21:53 +00:00

## Summary Resolves #15522. ## Test Plan `cargo nextest run` and `cargo insta test`. --------- Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
16 lines
270 B
Python
16 lines
270 B
Python
from telnetlib import Telnet
|
|
|
|
Telnet("localhost", 23)
|
|
|
|
|
|
# https://github.com/astral-sh/ruff/issues/15522
|
|
map(Telnet, [])
|
|
foo = Telnet
|
|
|
|
import telnetlib
|
|
_ = telnetlib.Telnet
|
|
|
|
from typing import Annotated
|
|
foo: Annotated[Telnet, telnetlib.Telnet()]
|
|
|
|
def _() -> Telnet: ...
|