Skip to content
Permalink
Tree: 8df632bca5
Commits on Nov 21, 2019
  1. Fix some issues in cryptography package (#3474)

    ilevkivskyi committed Nov 21, 2019
    Note: the verifier() methods are not in docs, but they don't look private and are actually used in some code.
Commits on Nov 20, 2019
  1. Add missing elements for multiprocessing.dummy (#3471)

    mjpieters authored and JukkaL committed Nov 20, 2019
    `multiprocessing.dummy` exports names that were not yet listed in the typeshed stub:
    
    ```python
    >>> from multiprocessing import dummy as mpdummy
    >>> imported_objects = (
    ...     (name, obj) for name, obj in vars(mpdummy).items()
    ...     if name in mpdummy.__all__ and not obj.__module__.startswith("multiprocessing.dummy")
    ... )
    >>> print(*(f"{name}: {obj.__module__}" for name, obj in sorted(imported_objects)), sep="\n")
    Barrier: threading
    BoundedSemaphore: threading
    Condition: threading
    Event: threading
    JoinableQueue: queue
    Lock: _thread
    Queue: queue
    RLock: threading
    Semaphore: threading
    current_process: threading
    ```
    
    Of these, only `JoinableQueue` was listed.
  2. distutils.fancy_getopt short option is optional (#3469)

    chrahunt authored and JukkaL committed Nov 20, 2019
  3. Fix type of imp.find_module() (#3465)

    dlax authored and JukkaL committed Nov 20, 2019
    find_module is documented to return a tuple (file, pathname,
    description) where "file" is open file object and "description" a tuple
    (suffix, mode, type). The type of "file" was wrong ("str" instead of
    "IO[Any]") as well as that of "suffix" ("IO[Any]" instead of "str");
    probably those type definitions were swapped.
    
    Fixes #3466.
Commits on Nov 14, 2019
  1. Add warnings.catch_warning type hints with Literal. (#3464)

    mslapek authored and srittau committed Nov 14, 2019
    Closes: #3463
Commits on Nov 13, 2019
  1. Add type hints for audioop module (#3428)

    jlaine authored and JelleZijlstra committed Nov 13, 2019
Commits on Nov 11, 2019
  1. Add sys.addaudithook() and audit() (#3455)

    srittau authored and JelleZijlstra committed Nov 11, 2019
  2. Run CI tests against win32 and darwin platform (#3457)

    srittau authored and JelleZijlstra committed Nov 11, 2019
    Also use Python 3.8 as default Python version for tests
  3. Fix errors discovered by running typeshed check on Windows (#3456)

    ilevkivskyi committed Nov 11, 2019
    Fix errors discovered by running typeshed check on Windows. This is a temporary fix for #3446 (in long term we should figure out why these were not caught by typeshed CI).
    
    I also remove an outdated comment while I am at it.
Commits on Nov 10, 2019
  1. sys: add pycache_prefix (#3454)

    bluetech authored and srittau committed Nov 10, 2019
  2. Fix type for os.terminal_size to Tuple (#3450)

    blueyed authored and srittau committed Nov 10, 2019
  3. Change the return type of __reduce__ and __reduce_ex__ to Union[str, …

    MSeifert04 authored and srittau committed Nov 10, 2019
    …Tuple[Any, ...]] (#3453)
    
    This allows subclasses to return strings (which are allowed) from these
    methods without having mypy throwing an error.
    
    Closes #3452
Commits on Nov 7, 2019
  1. New libs: Change permission requirement to notification (#3443)

    srittau authored and JelleZijlstra committed Nov 7, 2019
    This was discussed on the typing-sig mailing list and in
    python/peps#1218, has met the approval of the steering council, and
    was incorporated into PEP 484.
Commits on Nov 6, 2019
  1. Add assorted werkzeug type hints (#3444)

    srittau authored and JelleZijlstra committed Nov 6, 2019
    * Annotate is_immutable()
    * Annotate ImmutableListMixin and make generic
    * Make ImmutableList generic and derive from generic List
    * Annotate Accept
    * Annotate MIMEAccept
    * Fix annotation of parse_accept_header()
  2. Use async syntax instead of @coroutine (#3441)

    srittau authored and JelleZijlstra committed Nov 6, 2019
  3. Add functools.cached_property (#3439)

    srittau authored and JelleZijlstra committed Nov 6, 2019
    Part of #3319
  4. Add more stubs to redis (pubsub and monitor) (#3442)

    MarkusBauer authored and srittau committed Nov 6, 2019
Commits on Nov 4, 2019
  1. Add the (deprecated) assertDictContainsSubset() to TestCase. (#3437)

    Flameeyes authored and JelleZijlstra committed Nov 4, 2019
    Until this is removed from the standard library, it probably should stay in the typing.
    
    Also update both 2 and 3 definitions to use Mapping[Any, Any], rather than Dict[Any, Any].
  2. Add more stubs for cryptography (#3307)

    jlaine authored and srittau committed Nov 4, 2019
Commits on Nov 3, 2019
  1. Remove certifi.old_where (#3436)

    jdufresne authored and srittau committed Nov 3, 2019
    The function was removed from the API in commit (Nov 26, 2018):
    
    certifi/python-certifi@a462d21
  2. Allow datetime() with a delta=timedelta() in assert(Not)AlmostEqual(s…

    Flameeyes authored and JelleZijlstra committed Nov 3, 2019
    …). (#3426)
    
    While the documentation does not seem to make this particularly
    obvious, it is allowed.
Commits on Nov 1, 2019
  1. Fix signature of assertRaisesRegexp in unittest (#3434)

    JukkaL committed Nov 1, 2019
    Fixes mypy false positive `"None" has noattribute "__enter__"` here:
    
    ```
    class Foo(unittest.TestCase):
        def test_foo(self) -> None:
            with self.assertRaisesRegexp(Exception, "foo"):
                1 / 0
    ```
    
    Fixes regression introduced in e6c467a.
  2. add timespec arg to datetime.time.isoformat (#3432)

    biancarosa authored and srittau committed Nov 1, 2019
    Close #3431
Commits on Oct 30, 2019
  1. Add `sock` attribute for http.client.HTTPConnection in Python 3. (#3429)

    Flameeyes authored and srittau committed Oct 30, 2019
    The equivalent httplib.HTTPConnection class already include it for Python
    2, despite the attribute not being documented for either version.
  2. asyncio: fix windows stubs (#3424)

    JelleZijlstra committed Oct 30, 2019
  3. Fix some incorrect/incomplete annotations for redis.client.PubSub (#3408

    gward authored and JelleZijlstra committed Oct 30, 2019
    )
    
    * redis: Fix return value declarations in redis.client.PubSub
    
    get_message() was declared incorrectly. Start here:
    
      https://github.com/andymccurdy/redis-py/blob/3.3.11/redis/client.py#L3298-L3300
    
    where it's obvious that get_message() returns either None or the
    output of handle_message().
    
    So what does handle_message() return? Combine:
    
      https://github.com/andymccurdy/redis-py/blob/3.3.11/redis/client.py#L3316-L3336
      https://github.com/andymccurdy/redis-py/blob/3.3.11/redis/client.py#L3366
    
    and you can see it returns None or a dict mapping str to something.
    
    * redis: Fix incorrect declaration for PubSub.get_message() argument
    
    Docstrings says it's a float:
    
      https://github.com/andymccurdy/redis-py/blob/3.3.11/redis/client.py#L3293-L3295
    
    And it eventually gets passed to settimeout() on a socket:
    
      https://github.com/andymccurdy/redis-py/blob/3.3.11/redis/connection.py#L182
    
    * redis: Annotate one more method arg in PubSub class
    
    get_message() and handle_message() are closely related:
    ignore_subscribe_message does the same in both, and its default value
    in both is False.
  4. Add importlib.metadata (Python >= 3.8) (#3346)

    srittau authored and JelleZijlstra committed Oct 30, 2019
    Part of #3319
  5. Copyreg stubs (#3387)

    CraftSpider authored and JelleZijlstra committed Oct 30, 2019
  6. Add pytz.FixedOffset (#3393)

    angelaambroz authored and JelleZijlstra committed Oct 30, 2019
  7. Add missing Python 3.7 and 3.8 annotations (#3399)

    srittau authored and JelleZijlstra committed Oct 30, 2019
    * Add explicit ssl_handshake_timeout arguments to open_connection and start_server
    
    * Add context arguments to call methods
    
    * Accept PathLike for create_unix_* paths
    
    * Add TimerHandle.when()
    
    Add missing version check
    
    * AbstractServer is now an async context manager
    
    * Add happy_eyeballs_delay and interleave arguments to create_connection
    
    * Re-export asyncio.windows_events from asyncio
    
    * Add name argument to Task constructor
    
    * Add Task.get_coro()
    
    * import and other fixes
    
    * Fix return type of get_coro()
  8. Add missing ZipFile constructor arguments (#3414)

    srittau authored and JelleZijlstra committed Oct 30, 2019
    Closes: #3413
  9. Add sort_keys param to all dump-like functions in PyYAML (yaml) lib (#…

    b0g3r authored and JelleZijlstra committed Oct 30, 2019
  10. Clarify contributions are from people external to the project (#3421)

    brettcannon authored and JelleZijlstra committed Oct 30, 2019
    Closes #3420
Commits on Oct 29, 2019
  1. exec, spawn: Allow bytes for environment keys and values. (#3419)

    benjaminp authored and JelleZijlstra committed Oct 29, 2019
    A more correct type would be Mapping[Union[bytes, str], Union[bytes, str]], but our hands are tied by the invariance of mapping keys.
Older
You can’t perform that action at this time.