Skip to content

Commit 2262cf5

Browse files
committed
build(deps): remove enum34/types-enum34
reorder types on some type comments
1 parent 3e08286 commit 2262cf5

11 files changed

Lines changed: 8 additions & 20 deletions

File tree

java-api-stubs/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ classifiers = [
3737
]
3838
dependencies = [
3939
"mypy[python2]==0.971",
40-
"types-enum34",
4140
]
4241
urls.Funding = "https://github.com/sponsors/cesarcoatl"
4342
urls.Homepage = "https://github.com/ignition-devs/java-api"

java-api-stubs/requirements.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,6 @@ typed-ast==1.5.5 \
7272
--hash=sha256:fd946abf3c31fb50eee07451a6aedbfff912fcd13cf357363f5b4e834cc5e71a \
7373
--hash=sha256:fe58ef6a764de7b4b36edfc8592641f56e69b7163bba9f9c8089838ee596bfb2
7474
# via mypy
75-
types-enum34==1.1.8 \
76-
--hash=sha256:05058c7a495f6bfaaca0be4aeac3cce5cdd80a2bad2aab01fd49a20bf4a0209d \
77-
--hash=sha256:6f9c769641d06d73a55e11c14d38ac76fcd37eb545ce79cebb6eec9d50a64110
78-
# via java-api-stubs (pyproject.toml)
7975
typing-extensions==4.15.0 \
8076
--hash=sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466 \
8177
--hash=sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548

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/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 \

java-api/setup.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ project_urls =
3838
[options]
3939
packages = find:
4040
install_requires =
41-
enum34
4241
typing
4342
python_requires = ==2.7.18
4443
package_dir =

java-api/src/java/nio/file/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ def compareTo(self, other):
560560
pass
561561

562562
def endsWith(self, other):
563-
# type: (Union[Object, Path, str, unicode]) -> bool
563+
# type: (Union[str, unicode, Object, Path]) -> bool
564564
return True
565565

566566
def equals(self, other):

java-api/src/java/util/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ def getDisplayName(self, locale=None):
10451045

10461046
@staticmethod
10471047
def getInstance(arg):
1048-
# type: (Union[Locale, str, unicode]) -> Currency
1048+
# type: (Union[str, unicode, Locale]) -> Currency
10491049
pass
10501050

10511051
def getNumericCode(self):

0 commit comments

Comments
 (0)