GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Consider not treating `Hashable` as equivalent to `object` · Issue #1162 · astral-sh/ty Closed astral-sh/ruff #26039Labels conformanceprotocolsIssues related to (typing.)Protocolsset-theoretic typesunions, intersections and more Milestone DescriptionIn astral-sh/ruff#20284, we reworked our logic so that from typing import Hashable def f(x: Hashable): ... f([]) Given that the Liskov principle is so frequently and fragrantly violated for hashability, in Python's builtin types, standard library, and across a wide range of Python code, it may be worth us seeing if we can roll back astral-sh/ruff#20284 and find another solution to #1132 that improves our compatibility with other type checkers. The reason why other type checkers do not run into problems such as #1132 is that they do not eagerly simplify unions of Reacted by DetachHead Reacted by Rodrigo Girão Serrão and Niklas Mertsch Activity
MetadataMetadataAssigneesLabelsconformanceprotocolsIssues related to (typing.)Protocolsset-theoretic typesunions, intersections and more TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |