From 83833116bdc8d0b7c08493b387f48dc833e73720 Mon Sep 17 00:00:00 2001 From: Shantanu Date: Sat, 29 Feb 2020 05:18:34 -0800 Subject: [PATCH] datetime: mark positional-only args (#3791) --- stdlib/2and3/datetime.pyi | 2 +- tests/stubtest_whitelists/py38.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/stdlib/2and3/datetime.pyi b/stdlib/2and3/datetime.pyi index 9c4031ad5..a9d2e592a 100644 --- a/stdlib/2and3/datetime.pyi +++ b/stdlib/2and3/datetime.pyi @@ -37,7 +37,7 @@ class date: def __init__(self, year: int, month: int, day: int) -> None: ... @classmethod - def fromtimestamp(cls: Type[_S], t: float) -> _S: ... + def fromtimestamp(cls: Type[_S], __timestamp: float) -> _S: ... @classmethod def today(cls: Type[_S]) -> _S: ... @classmethod diff --git a/tests/stubtest_whitelists/py38.txt b/tests/stubtest_whitelists/py38.txt index 3a49d7aca..e857dcadf 100644 --- a/tests/stubtest_whitelists/py38.txt +++ b/tests/stubtest_whitelists/py38.txt @@ -91,7 +91,6 @@ dataclasses.dataclass dataclasses.field dataclasses.make_dataclass dataclasses.replace -datetime.date.fromtimestamp decimal.Decimal.from_float decimal.setcontext dis.stack_effect