Skip to content

Commit f74e0b3

Browse files
committed
tweak mdtest prose
1 parent 05ad42a commit f74e0b3

File tree

1 file changed

+4
-1
lines changed
  • crates/ty_python_semantic/resources/mdtest

1 file changed

+4
-1
lines changed

crates/ty_python_semantic/resources/mdtest/enums.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,10 @@ reveal_type(Answer.YES.value) # revealed: Literal[1]
386386
reveal_type(Answer.NO.value) # revealed: Literal[2]
387387
```
388388

389-
Using `auto()` with non-integer mixins:
389+
It's [hard to predict](https://github.com/astral-sh/ruff/pull/20541#discussion_r2381878613) what the
390+
effect of using `auto()` will be for an arbitrary non-integer mixin, so for anything that isn't a
391+
`StrEnum` and has a non-`int` mixin, we simply fallback to typeshed's annotation of `Any` for the
392+
`value` property:
390393

391394
```python
392395
from enum import Enum, auto

0 commit comments

Comments
 (0)