Sebastian Rittau
ca9505c8f4
Improve imaplib return types ( #3670 )
...
* Improve imaplib return types
Mark CommandResults as obsolete.
Also fix types of tagged_commands and untagged_responses.
Based on a discussion in #3655 .
* Fix type of tagged_commands
* Fix IMAP4.tagged_commands type
* Mark CommandResults as private
* Fix
2020-02-22 09:58:14 -08:00
Reid Swan
3e638aa3c3
Add __enter__, __exit__ to IMAP4, make __init__ arguments optional ( #3540 )
...
Fixes #3537
2019-12-13 12:05:57 +01:00
Utkarsh Gupta
447691cf46
imaplib.pyi: Add missing imaplib.IMAP4.enable() ( #3314 )
...
Closes : #3313
2019-10-06 19:48:48 -07:00
Utkarsh Gupta
717cd1f96f
imaplib.pyi: Add ssl_context parameter for Python >= 3.3 ( #3310 )
...
Fixes : #3289
2019-10-06 18:57:22 +02:00
Utkarsh Gupta
79a8f0b8c6
imaplib.pyi: Take strings as args instead of a list of strings ( #3308 )
...
Fixes : #3289
2019-10-04 20:10:21 -07:00
Guido van Rossum
b336182b69
Fix some errors with --disallow-any-generics ( #3276 )
...
See #3267 . Covers all of stdlib/2and3.
2019-09-29 09:15:27 -07:00
NAKAMURA Yoshitaka
c78b9eb022
Allow IMAP4.search() to accept "None" charset as docs say ( #2310 )
2018-07-04 23:24:51 -07:00
NAKAMURA Yoshitaka
16ed540c95
Fix type for imaplib.IMAP4.error and related ( #2273 )
2018-06-22 08:43:25 -07:00
Tim Abbott
c1971fb443
imaplib: Fix annotation for search. ( #1762 )
...
* imaplib: Fix annotation for search.
https://docs.python.org/3/library/imaplib.html#imaplib.IMAP4.search
shows that IMAP4.search takes a number of str args, not a number of
List[str] args (I can see how one would be confused, though, because
of the *criteria).
* imaplib: Fix annotation for store.
While it's called "flag_list",
https://docs.python.org/3/library/imaplib.html#imaplib.IMAP4.store
clearly shows it's expecting a string with a list of flags in it, not
a Python list.
2017-11-25 13:23:57 -08:00
Jelle Zijlstra
54dd6ba27c
Change numerous default values to ... ( #1722 )
...
This is the convention, and some default values (e.g. strings) apparently
break pytype.
2017-11-09 06:28:40 -08:00
Matěj Cepl
8ead136300
IMAPlib stub. ( #1685 )
...
Fixes #295 .
2017-10-25 16:37:04 -07:00