Skip to content

Commit 4edda7d

Browse files
authored
build(deps): remove enum34, types-enum34 and mypy (#2)
reorder types on some type comments
1 parent 3e08286 commit 4edda7d

File tree

14 files changed

+9
-174
lines changed

14 files changed

+9
-174
lines changed

.github/workflows/pip-compile-upgrade.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.

java-api-stubs/pyproject.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ classifiers = [
3535
"Typing :: Stubs Only",
3636
"Typing :: Typed",
3737
]
38-
dependencies = [
39-
"mypy[python2]==0.971",
40-
"types-enum34",
41-
]
4238
urls.Funding = "https://github.com/sponsors/cesarcoatl"
4339
urls.Homepage = "https://github.com/ignition-devs/java-api"
4440
urls.Source = "https://github.com/ignition-devs/java-api"

java-api-stubs/requirements.txt

Lines changed: 0 additions & 82 deletions
This file was deleted.

java-api-stubs/stubs/java/nio/file/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ class LinkOption(Enum, CopyOption, OpenOption):
269269

270270
class Path(Watchable):
271271
def compareTo(self, other: Path) -> int: ...
272-
def endsWith(self, other: Union[Object, Path, str, unicode]) -> bool: ...
272+
def endsWith(self, other: Union[str, unicode, Object, Path]) -> bool: ...
273273
def equals(self, other: Object) -> bool: ...
274274
def getFileName(self) -> Path: ...
275275
def getName(self, index: int) -> Path: ...

java-api-stubs/stubs/java/util/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ class Currency(Object):
393393
def getCurrencyCode(self) -> Union[str, unicode]: ...
394394
def getDisplayName(self, locale: Optional[Locale] = ...) -> Union[str, unicode]: ...
395395
@staticmethod
396-
def getInstance(arg: Union[Locale, str, unicode]) -> Currency: ...
396+
def getInstance(arg: Union[str, unicode, Locale]) -> Currency: ...
397397
def getNumericCode(self) -> int: ...
398398
def getNumericCodeAsString(self) -> Union[str, unicode]: ...
399399
def getSymbol(self, locale: Optional[Locale] = ...) -> Union[str, unicode]: ...

java-api-stubs/stubs/java/util/regex/__init__.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ class Matcher(Object, MatchResult):
3333
def region(self, start: int, end: int) -> Matcher: ...
3434
def regionEnd(self) -> int: ...
3535
def regionStart(self) -> int: ...
36-
def replaceAll(self, arg: Union[Function, str, unicode]) -> Union[str, unicode]: ...
36+
def replaceAll(self, arg: Union[str, unicode, Function]) -> Union[str, unicode]: ...
3737
def replaceFirst(
38-
self, arg: Union[Function, str, unicode]
38+
self, arg: Union[str, unicode, Function]
3939
) -> Union[str, unicode]: ...
4040
def requireEnd(self) -> bool: ...
4141
def reset(self, input: Optional[CharSequence] = ...) -> Matcher: ...

java-api-stubs/tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description = run type check on code base
1111
base_python = python3.12
1212
skip_install = true
1313
deps =
14-
--requirement requirements.txt
14+
mypy[python2]==0.971
1515
commands =
1616
mypy stubs
1717

java-api-stubs/uv.toml

Lines changed: 0 additions & 5 deletions
This file was deleted.

java-api/requirements.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
enum34
21
typing

java-api/requirements.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
#
55
# pip-compile --generate-hashes requirements.in
66
#
7-
enum34==1.1.10 \
8-
--hash=sha256:a98a201d6de3f2ab3db284e70a33b0f896fbf35f8086594e8c9e74b909058d53 \
9-
--hash=sha256:c3858660960c984d6ab0ebad691265180da2b43f07e061c0f8dca9ef3cffd328 \
10-
--hash=sha256:cce6a7477ed816bd2542d03d53db9f0db935dd013b70f336a95c73979289f248
11-
# via -r requirements.in
127
typing==3.10.0.0 \
138
--hash=sha256:12fbdfbe7d6cca1a42e485229afcb0b0c8259258cfb919b8a5e2a5c953742f89 \
149
--hash=sha256:13b4ad211f54ddbf93e5901a9967b1e07720c1d1b78d596ac6a439641aa1b130 \

0 commit comments

Comments
 (0)