mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
refactor python: j2k apply fixes from review
- document `PyAnyType` - remove wildcards from `PyType` methods - revert `PyTypeUtil.notNullToRef` to a function GitOrigin-RevId: 4ba489184c466e57b28a149fb39c9858c5070f80
This commit is contained in:
committed by
intellij-monorepo-bot
parent
45e0a9ccce
commit
867a754295
@@ -10,6 +10,11 @@ import com.jetbrains.python.psi.resolve.PyResolveContext
|
||||
import com.jetbrains.python.psi.resolve.RatedResolveResult
|
||||
import org.jetbrains.annotations.ApiStatus
|
||||
|
||||
/**
|
||||
* represents `typing.Any` and `Unknown`/untyped
|
||||
*
|
||||
* currently unused
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
class PyAnyType private constructor(override val name: String) : PyType {
|
||||
override fun resolveMember(
|
||||
|
||||
@@ -44,7 +44,7 @@ interface PyType {
|
||||
|
||||
|
||||
@ApiStatus.Experimental
|
||||
fun getAllMembers(resolveContext: PyResolveContext): List<@JvmWildcard PyTypeMember> {
|
||||
fun getAllMembers(resolveContext: PyResolveContext): List<PyTypeMember> {
|
||||
return emptyList()
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ interface PyType {
|
||||
* There can be several members with the same name (for example, methods with @overload)
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
fun findMember(name: String, resolveContext: PyResolveContext): List<@JvmWildcard PyTypeMember> {
|
||||
fun findMember(name: String, resolveContext: PyResolveContext): List<PyTypeMember> {
|
||||
return emptyList()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user