Josh Staiger
fd25e534ad
Add default timeout for Condition.wait_for ( #1726 )
...
Fixes:
- Too few arguments for "wait_for" of "Condition"
when timeout is not specified.
2017-11-09 10:12:33 -08:00
rchen152
85e75c9a6a
Fix a parameter type in threading.Thread.__init__ ( #1706 )
2017-11-01 15:41:10 -07:00
hashstat
fc74f53c5a
Corrects timeout type annotations. ( #1639 )
...
Timeouts should be floats, but were ints for some reason.
2017-10-04 08:40:40 -07:00
Jelle Zijlstra
6f6fa428ce
fix some issues found by stubcheck ( #1303 )
...
- ThreadError exists (undocumented) on Python 3. It's an alias for _thread.error,
but making it a separate exception seems fine.
- zipfile.error is an alias for BadZipFile on both Python versions.
- zlib.Compress and Decompress are not actually accessible at runtime.
2017-05-23 12:44:35 -07:00
Gerhard Hagerer
96123f8474
Added Lock.locked() method stub ( #633 )
...
https://docs.python.org/3/library/asyncio-sync.html#asyncio.Lock.locked
2016-10-26 07:17:59 -07:00
Matthias Kramm
b0eae4bf46
allow to use RLock in type annotations ( #595 )
2016-10-10 16:52:47 -07:00
Alvaro Caceres
92b600540e
Add private members to stdlib threading ( #590 )
...
* Add threading._DummyThread
* Make threading.RLock a factory function, not a class
Will break code that currently uses a threading.RLock type annotation
2016-10-07 13:11:47 -07:00
Alvaro Caceres
674fe2b59f
Add threading.Condition.notifyAll ( #587 )
...
Documented in py2, undocumented in py3
2016-10-06 14:14:08 -07:00
Guido van Rossum
1e1694276c
Oops, should use ... not None.
2016-08-02 11:06:52 -07:00
Guido van Rossum
2bb6856456
Change local to type Any and add link to mypy bug.
2016-08-02 10:59:11 -07:00
Guido van Rossum
9debde04e9
Make type of threading.locals more lenient.
2016-08-02 09:39:00 -07:00
Valérian Rousset
ee02a8a968
Improve threading ( #403 )
...
* initial stubgen
* comment everything
* 17.1.0 done
* 17.1.1 done
* 17.1.2 done
* 17.1.3 done
* 17.1.4 done
* 17.1.5 done
* reorder __enter__, __exit__
* 17.1.6 done
* 17.1.7 done
* 17.1.8 done
* 17.1.9 done
* cleanup, py3 done
* py2 begin, comment everything
* 16.2.0 done
* 16.2.1 done
* 16.2.2 done
* 16.2.3 done
* 16.2.4 done
* 16.2.5 done
* 16.2.6 done
* 16.2.7 done
* cleanup, py2 done
* remove old threading stubs
* use --strict-optional
* improve Condition.wait_for
* remove type ignore
2016-08-01 14:31:57 -07:00