Skip to content

Commit 67ae3fb

Browse files
committed
Fix TypedDict type hint
1 parent fc03417 commit 67ae3fb

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

CHANGELOG.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
# Changelog
22

33
## [Unreleased]
4+
### Fixed
5+
- `TypedDict` subclasses being displayed as a regular dict in type hints
46

57
## [0.3.0] - 2022-09-25
6-
### Added
7-
- Type hints now support `async` functions [[#15](https://github.com/WhiteMemory99/Intellij-Python-Inlay-Params/pull/15)]
8-
- Made type hints clickable, `Ctrl+LMB` to open the object reference [[#17](https://github.com/WhiteMemory99/Intellij-Python-Inlay-Params/pull/17)]
8+
### Added
9+
- Type hints now support `async` functions [[#15](https://github.com/WhiteMemory99/Intellij-Python-Inlay-Params/pull/15)]
10+
- Made type hints clickable, `Ctrl+LMB` to open the object reference [[#17](https://github.com/WhiteMemory99/Intellij-Python-Inlay-Params/pull/17)]
911

10-
### Changed
11-
- Parameter hints rewritten - now more reliable, with complete syntax coverage, including chained calls support.
12+
### Changed
13+
- Parameter hints rewritten - now more reliable, with complete syntax coverage, including chained calls support.
1214

13-
### Fixed
14-
- Redundant parameter hints for names that start with "`__`" or 1 character long
15+
### Fixed
16+
- Redundant parameter hints for names that start with "`__`" or 1 character long
1517
- Display of unnecessary type hints [[#16](https://github.com/WhiteMemory99/Intellij-Python-Inlay-Params/pull/16)]
1618

1719
## [0.2.1] - 2022-09-23

src/main/kotlin/space/whitememory/pythoninlayparams/types/hints/HintGenerator.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ enum class HintGenerator {
7272
type: PyType?,
7373
typeEvalContext: TypeEvalContext
7474
): List<InlayInfoDetails>? {
75+
if (type is PyTypedDictType && !type.isInferred()) return null
7576
if (
7677
type is PyCollectionType
7778
&& type.name != null

0 commit comments

Comments
 (0)