KotlinIsland

Results 502 comments of KotlinIsland

Ah yes - https://github.com/DetachHead/basedpyright/issues/149 This needs to be added to the "off means off" feature

Neither `Literal["a"]` nor `Literal["a", "b"]` are values of type `type[T]` ('classes'). They are `TypeForm`s, which are undenotable in Python. Both should show an error here. ```py def f[T](t: type[T]): t.mro()...

An instance of `_LiteralGenericAlias` is not a class (`type`)

Would want `SymbolString` as well. And would it be strict(reject `str`), or just report when an invalid literal is provided?

Can we automatically fold the import blocks, PyCharm does this and it's very appreciated: I don't like seeing 1000 lines of generated code at the top of every file

> I do think the capability comes from pylance, see [this](https://github.com/microsoft/pyright/issues/1037) issue > Folding support was added in 2022.1.1 https://github.com/microsoft/pylance-release/issues/372#issuecomment-1023726101

currently (in bpr) folding is based on indentation: ```py def foo(): print( ) print(2) ``` Try this out, you will observe that it is broken.

This is just normal functionality of vscode, when you trigger auto complete at any position, it will suggest random words ![image](https://github.com/DetachHead/basedpyright/assets/65446343/1d0c7360-682f-410b-8fd8-f697ce5bc832)

The identical behavior can be observed in javascript: ![image](https://github.com/DetachHead/basedpyright/assets/65446343/98394e95-d327-4338-b007-550fcaa105a9) Can I ask, why you find the auto completions here to be unexpected and detrimental to the user experience? I personally...