()
| 112 | |
| 113 | @pytest.mark.mypy_testing |
| 114 | def mypy_dict_typing() -> None: |
| 115 | class T(HasTraits): |
| 116 | foo = Dict({}, help="Shell command used to compile latex.").tag(config=True) |
| 117 | |
| 118 | t = T() |
| 119 | reveal_type(Dict(None, allow_none=True)) # R: traitlets.traitlets.Dict[builtins.str, Any] |
| 120 | reveal_type( |
| 121 | Dict(None, allow_none=True).tag(sync=True) # R: traitlets.traitlets.Dict[builtins.str, Any] |
| 122 | ) |
| 123 | reveal_type(T.foo) # R: traitlets.traitlets.Dict[builtins.str, Any] |
| 124 | reveal_type(t.foo) # R: builtins.dict[builtins.str, Any] |
| 125 | |
| 126 | |
| 127 | @pytest.mark.mypy_testing |
nothing calls this directly
no test coverage detected
searching dependent graphs…