Commit Graph

19 Commits

Author SHA1 Message Date
Shantanu
6ff5b88ca7 typeshed: remove crufty comments (#4699)
Co-authored-by: hauntsaninja <>
2020-10-23 09:40:06 +02:00
Utsav
6f943d43ea Added __class_getitem__ (#4695)
Resolves #4682

Co-authored-by: hauntsaninja <>
2020-10-22 14:05:04 -07:00
Jelle Zijlstra
5d553c9584 apply black and isort (#4287)
* apply black and isort

* move some type ignores
2020-06-28 13:31:00 -07:00
Rebecca Chen
a70f4893f8 Add undocumented attribute queue.Queue.queue with type Any. (#4032)
This attribute was removed in
https://github.com/python/typeshed/pull/3879 because it is undocumented
and was annotated incorrectly. Unfortunately, a surprising (?) amount of
Google code uses this attribute and assumes it is a deque, so it needs
to exist but can't have a more general annotation like Collection[Any].

I also removed a no-longer-used typing.Deque import.
2020-05-17 18:05:52 -07:00
Debjyoti Biswas
cb87bd1f53 Remove queue (#3879) 2020-04-01 10:47:36 -07:00
Sebastian Rittau
c32e1e2280 Enable --disallow-any-generics for stubs (#3288) 2019-10-01 05:31:34 -07:00
Michael Nix
1ab5145124 adds threading related members to queue.pyi (#3198) 2019-08-19 18:33:19 +02:00
nabnut
87f96dc1f0 Add stub for queue.SimpleQueue in 3.7 (#2995)
Closes: #2994
2019-06-07 11:50:39 +02:00
Rebecca Chen
03878d732a Add attribute queue.Queue.queue. (#2870) 2019-03-16 22:11:48 +01:00
Alex Ellis
10a3e43a19 Queue stubs: Make LIFOQueue and PriorityQueue generic (#1538) 2017-08-10 20:15:43 -07:00
blokeley
c5479b11bb Add private methods stubs to queue.Queue (#1507)
It is a common pattern to subclass queue.Queue and override the private methods _init, _get, _put and _qsize so they should have stubs.
2017-08-01 14:37:51 -07:00
macheins
ab5f196fca Add maxsize attribute to Queue (#1465) 2017-07-04 08:40:17 -07:00
Max
c2e6a6f670 Add queue.Queue.empty() stub (#1259)
Fixes #1242. Seems like one method was omitted by accident.
2017-05-10 18:39:56 -07:00
Jelle Zijlstra
349ff59f33 change empty bodies from "pass" to "..."
CONTRIBUTING.md says to prefer ... Not the most impactful change but fixing
these will allow us to lint for it in the future and get a consistent style.
2017-03-16 09:13:08 -07:00
Onno Kortmann
c4125739e5 The timeout argument to Queue.{get,put} may be None (#682)
Python 2 and 3.
2016-11-11 10:29:52 -08:00
Fabian Heredia Montiel
918eef43f7 Add some missing classes from queue in py3 (#401) 2016-07-26 07:41:56 -07:00
Max Payton
e8e82a7c73 Make Empty a subclass of Exception (#266) 2016-06-04 18:32:13 -07:00
Matthias Kramm
94c9ce8fd0 Consistently use '= ...' for optional parameters. 2015-11-09 13:55:02 -08:00
Matthias Kramm
337abed05a add (overwrite with) mypy stubs, if available 2015-09-30 09:59:44 -07:00