We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 139b81d commit e5a5d9cCopy full SHA for e5a5d9c
1 file changed
src/main/kotlin/org/utpython/types/mypy/Utils.kt
@@ -5,14 +5,4 @@ fun String.modifyWindowsPath(): String {
5
val (disk, path) = this.split(":", limit = 2)
6
"\\\\localhost\\$disk$${path.replace("/", "\\")}"
7
} else this
8
-}
9
-
10
-/**
11
- * Remove .__init__ suffix if it exists.
12
- It resolves problem with duplication module names in mypy, e.g. mod.__init__ and mod
13
- */
14
-fun String.dropInitFile(): String {
15
- return if (this.endsWith(".__init__")) {
16
- this.dropLast(9)
17
- } else this
18
}
0 commit comments