17
0

- Update to version 0.0.1+git.20191209.a06abc5d:

* Make fieldnames of csv.DictReader Optional (#3534)
  * Update orjson stub from orjson repository(#3532)
  * Update stub for socket module (#3451)
  * Use Literal to improve SpooledTemporaryFile (#3526)
  * random: fix type for sample (#3525)
  * add raw property to BufferedIOBase (#3483)
  * Minor fixes to cryptography (x509) (#3520)
  * Simplify `WatchedFileHandler.__init__` (#3506)
  * Improve warnings stubs (#3501)
  * padding can take an int or an object (PSS.MAX_LENGTH) (#3521)
  * __future__: add _Feature.compiler_flag (#3522)
  * A few return annotations for redis client (#3517)
  * SMTPChannel.push() accepts str (#3516)
  * Optional initial-value parameter for itertools.accumulate() (#3503)
  * In python versions 3.7 and above, re-export Pattern and Match (#3510)
  * builtins.print: make sep and end Optional (#3468) (#3511)
  * Add ImportError constructor arguments (#3512)
  * Fix the signature of unittest.TestCase.assertLogs #3513 (#3514)
  * asyncio/future.pyi - wrap_future loop keyword arg (#3507)
  * Change return type of Message.get_payload() to Any (#3504)
  * Modulefinder stubs (#3497)
  * Type socketserver's RequestHandlerClass as a callable. (#3422)
  * add no_type_check_decorator stub for #2884 (#3460)
  * Add mailcap module (#3482)
  * mailbox: Fix signature of Mailbox.update method (#3493)
  * Refactor warnings.catch_warning to be a class. (#3499)
  * Fix type hints in Template class (#3491)
  * mailbox: Couple small fixes (#3490)
  * timeout argument to urllib.request.urlopen is Optional (#3487)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typeshed?expand=0&rev=10
This commit is contained in:
2019-12-12 12:33:18 +00:00
committed by Git OBS Bridge
parent e5863c3fc0
commit 8853a70ce9
6 changed files with 313 additions and 8 deletions

View File

@@ -1,3 +1,308 @@
-------------------------------------------------------------------
Thu Dec 12 12:12:49 UTC 2019 - mimi.vx@gmail.com
- Update to version 0.0.1+git.20191209.a06abc5d:
* Make fieldnames of csv.DictReader Optional (#3534)
* Update orjson stub from orjson repository(#3532)
* Update stub for socket module (#3451)
* Use Literal to improve SpooledTemporaryFile (#3526)
* random: fix type for sample (#3525)
* add raw property to BufferedIOBase (#3483)
* Minor fixes to cryptography (x509) (#3520)
* Simplify `WatchedFileHandler.__init__` (#3506)
* Improve warnings stubs (#3501)
* padding can take an int or an object (PSS.MAX_LENGTH) (#3521)
* __future__: add _Feature.compiler_flag (#3522)
* A few return annotations for redis client (#3517)
* SMTPChannel.push() accepts str (#3516)
* Optional initial-value parameter for itertools.accumulate() (#3503)
* In python versions 3.7 and above, re-export Pattern and Match (#3510)
* builtins.print: make sep and end Optional (#3468) (#3511)
* Add ImportError constructor arguments (#3512)
* Fix the signature of unittest.TestCase.assertLogs #3513 (#3514)
* asyncio/future.pyi - wrap_future loop keyword arg (#3507)
* Change return type of Message.get_payload() to Any (#3504)
* Modulefinder stubs (#3497)
* Type socketserver's RequestHandlerClass as a callable. (#3422)
* add no_type_check_decorator stub for #2884 (#3460)
* Add mailcap module (#3482)
* mailbox: Fix signature of Mailbox.update method (#3493)
* Refactor warnings.catch_warning to be a class. (#3499)
* Fix type hints in Template class (#3491)
* mailbox: Couple small fixes (#3490)
* timeout argument to urllib.request.urlopen is Optional (#3487)
* stream argument to pprint.pprint is Optional (#3488)
* fix incorrect param name in FileIO (#3484)
* Mostly undo #3372 (#3481)
* Py37 compileall add invalidation mode (#3476)
* annotated ZipInfo.from_file (#3478)
* Add default value to BaseContext.Pipe() (#3479)
* Mailbox stubs (#3427)
* Fix some issues in cryptography package (#3474)
* Add missing elements for multiprocessing.dummy (#3471)
* distutils.fancy_getopt short option is optional (#3469)
* Fix type of imp.find_module() (#3465)
* Add warnings.catch_warning type hints with Literal. (#3464)
* ast.Dict keys can be None (#3462)
* Add type hints for audioop module (#3428)
* Add sys.addaudithook() and audit() (#3455)
* Run CI tests against win32 and darwin platform (#3457)
* Fix errors discovered by running typeshed check on Windows (#3456)
* sys: add pycache_prefix (#3454)
* Fix type for os.terminal_size to Tuple (#3450)
* Change the return type of __reduce__ and __reduce_ex__ to Union[str, Tuple[Any, ...]] (#3453)
* New libs: Change permission requirement to notification (#3443)
* Add assorted werkzeug type hints (#3444)
* Use async syntax instead of @coroutine (#3441)
* Add functools.cached_property (#3439)
* Add more stubs to redis (pubsub and monitor) (#3442)
* Add the (deprecated) assertDictContainsSubset() to TestCase. (#3437)
* Add more stubs for cryptography (#3307)
* Remove certifi.old_where (#3436)
* Allow datetime() with a delta=timedelta() in assert(Not)AlmostEqual(s). (#3426)
* Fix signature of assertRaisesRegexp in unittest (#3434)
* add timespec arg to datetime.time.isoformat (#3432)
* Add `sock` attribute for http.client.HTTPConnection in Python 3. (#3429)
* asyncio: fix windows stubs (#3424)
* Fix some incorrect/incomplete annotations for redis.client.PubSub (#3408)
* Add importlib.metadata (Python >= 3.8) (#3346)
* Copyreg stubs (#3387)
* Add pytz.FixedOffset (#3393)
* Add missing Python 3.7 and 3.8 annotations (#3399)
* Add missing ZipFile constructor arguments (#3414)
* Add sort_keys param to all dump-like functions in PyYAML (yaml) lib (#3417)
* Clarify contributions are from people external to the project (#3421)
* exec, spawn: Allow bytes for environment keys and values. (#3419)
* Add missing expected_regex parameter to TestCase.assertRaisesRegexp(). (#3418)
* Allow None for click.core.Context.default_map (#3416)
* Fix signature of `multiprocessing.get_start_method` (#3415)
* Fix annotations with literal values (#3411)
* Update sre_parse module for Python 3.8 (#3412)
* __init__.pyi: Accept RSAPrivateKey or RSAPublicKey as the key (#3410)
* Add the `memoryview.release` method (#3405)
* Update stubs for tabulate (#3391)
* Add werkzeug.exceptions.FailedDependency (#3403)
* logging.handlers: Add BufferingHandler.buffer (#3402)
* Add sys._debugmallocstats (#3401)
* Added stub for urllib.proxy_bypass() (#3396)
* Change pprint depth type to Optional[int] (#3392)
* Convert namedtuples to class syntax (#3321)
* Adds `posonlyargs` property to `arguments` for python3.8+ (#3390)
* Require a more recent pytype version. (#3388)
* Add shlex.shlex.next in Python 2. (#3389)
* Add missing @property to Response.next() stub (#3384)
* Fix show_default type in click.option signatures (#3385)
* Revert __import__ function annotation to return type back to Any (#3383)
* Change select() stub to accept iterables, not just sequences (#3382)
* multiprocessing.pool: Fix return of map_async() (#3378)
* pymysql.Cursor is a context manager (#3379)
* Don't shadow ast.Tuple with typing.Tuple (#3376)
* Add PEP 593 (Annotated etc.) typing_extensions stubs (#3369)
* Make path separator based on OS separator (#3375)
* generate_tokens(readline) must return bytes (#3372)
* Add stubs for cgitb (#3368)
* Fix HTMLParser.handle_startendtag() attrs annotation (#3366)
* Reorder memoryview.__setitem__ overloads (#3365)
* Add public missing asyncio stubs for windows and proactor files (#3234)
* Add bdb stubs (#3354)
* protobuf: Fix inadvertently deleted annotations. (#3364)
* fixing https://github.com/python/typeshed/issues/3361 (#3362)
* Clean up multiprocessing + shared_memory (#3351)
* Annotations for remaining Python 3.8 additions (#3358)
* Annotate Python 3.8 removals (#3359)
* Remove unnecessary __all__ annotations (#3357)
* Remove raise statements from function bodies (#3355)
* Extract asyncio exceptions into a separate module (Python 3.8) (#3356)
* typing.pyi: Remove verbose and rename from NamedTuple (#3352)
* Add several Python 3.8 annotations (#3347)
* Update 'format' README section -- don't imply it is executable (#3350)
* Add missing exception to smtplib (#3348)
* Ensurepip stubs (#3349)
* find_loader() can return None (#3341)
* Change type for urllib headers from Mapping to email.message.Message (#3345)
* Fix argument type for logging.Formatter.formatTime (#3343)
* protobuf: Narrow type of Message.FromString. (#3340)
* Allow callables in _SourceObjectType (Python 2) (#3338)
* Add assorted annotations (#3335)
* Python3.8 additions and changes (#3337)
* Fix an argument to csv.DictReader() (#3339)
* protobuf: Tighten annotations for MergeFromString and ParseFromString. (#3333)
* Update the signature of decorator.decorator (#3336)
* message.pyi: Change HeaderType to Any (#2924)
* Revised stubs for geoip2 third party library (#3317)
* Mark some urllib.parse return fields optional (#3332)
* Remove unused # type: ignore comments (#3325)
* models.pyi: Add missing requests.Respons.next() (#3328)
* Make it explicit that the cryptography stubs are incomplete (#3331)
* Fix the signature of decorator.contextmanager (#3330)
* Make 2-arg iter() retrun type match passed callable's return type (#3326)
* Add missing Optional types in urllib.parse (#3263)
* protobuf: Add Message.FromString static method. (#3327)
* __init__.pyi: Add missing methods on pkg_resources.VersionConflict (#3318)
* Minor flake8 improvements (#3324)
* Remove a bunch of unused imports (#3323)
* Fix return type of werkzeug's ProxyFix (#3320)
* Add type stub for decorator lib (#3038)
* Add `data` to UserList class, fix UserDict.data type (#3316)
* imaplib.pyi: Add missing imaplib.IMAP4.enable() (#3314)
* imaplib.pyi: Add ssl_context parameter for Python >= 3.3 (#3310)
* add IncrementalNewlineDecoder constructor (#3311)
* IncrementalNewlineDecoder.decode accepts str (#3312)
* imaplib.pyi: Take strings as args instead of a list of strings (#3308)
* introduce __floor__ and __ceil__ for int in Python 3 (#3306)
* rrule.weekday(...) returns rrule.weekdays, not _common.weekdays. (#3274)
* Fix the signature of IOBase._checkClosed(). (#3305)
* Move cryptography from 2 to 2and3 (#3304)
* ssl: add VerifyFlags flags and VerifyMode enum (#3302)
* Updated maxminddb stubs to v1.5.0 (#3300)
* builtins.pyi: Use two type vars (#3291)
* cryptography: Return RSAPrivateKeyWithSerialization from generate_private_key. (#3296)
* Allow callables in _SourceObjectType (#3295)
* Remove some spurious version checks in logging (#3292)
* Use Any instead of object in the view types for __and__ and __sub__ (#3294)
* Add the mypyc_attr function to mypy_extensions (#3290)
* Add http.MISDIRECTED_REQUEST introduced in 3.7 (#3293)
* Enable --disallow-any-generics for stubs (#3288)
* Allow passing bytes and byte string to yaml load APIs. (#3287)
* Added stub for asyncore.socket_map, undocumented but useful (#3284)
* Added stub for http.server.BaseHTTPRequestHandler useful undocumented fields (#3285)
* Added stub for urllib.request.proxy_bypass() (#3283)
* Added ConfigParser.BOOLEAN_STATES # Undocumented (#3281)
* Fix third_party errors with --disallow-any-generics (#3278)
* Change last asyncio.gather() overload ret. to List (#3248)
* Modified __add__ method in tuple class (#3252)
* Simplify Travis-CI configuration (#3220)
* Improve the explanatory comment at the top of check_consistent.py
* Fix some errors with --disallow-any-generics (#3276)
* switched return_exceptions from bool to Literal for asyncio.gather (#3275)
* Add multiprocessing.Array (#3272)
* dir argument to tempfile functions may take PathLike (#3226)
* Add missing default for ssl_handshake_timeout agrument (#3277)
* Make the `value` argument to ctypes.cbool.__init__ optional. (#3273)
* update `codecs.register` type definition (#3271)
* Updated logging type stub (#3269)
* Add return types for pymysql.connection.close/cursor (#3268)
* inspect.Traceback/FrameInfo index/code_context attributes now Optional[] (#3265)
* click: Support tuples of _ParamTypes, CliRunner fixes (#3259)
* Define listdir in posix and import it in os. (#3258)
* Added constructor types for click.FloatRange (#3257)
* Added missing top-level export to click (#3256)
* Introduce explicit `__str__` and `__repr__` for Exceptions (#3247)
* Changed type of fieldname parameter in DictWriter __init__ method from Sequence[str] to Iterable[str]. This allows it to work with the following code: (#3253)
* add missing errnos (#3254)
* Changed combine method in datetime to use aliased _date and _time types (like all other methods in this class) to avoid namespace collision with date and time methods. (#3251)
* Stubs for maxminddb added (#3245)
* Make the type of `timeout` Optional[float] everywhere in subprocess. (#3241)
* Copy a better definition of abstractmethod from 3/abc to 2/abc. (#3242)
* Update and improve py_compile module stubs. (#3240)
* Add proper support for __rtruediv__ on libpath.Path (#3236)
* setprofile accepts None (#3239)
* Accept bytes to several Redis client commands (#3238)
* requests.Session.request data arg accepts an iterable of tuples (#3237)
* Use Text for text arguments to click.[un]style (#3233)
* Add ThreadingHTTPServer stub (#3232)
* Add AIFC module stubs (#3075)
* Change SyncManager behaviour when used as a context decorator (#3230)
* fix: Add MapResult type (#3228)
* Fix type in argparse.HelpFormatter._fill_text() (#3229)
* Use protocol for FTP.stor* (#3227)
* Return concrete sets from ItemsView and KeysView (#3181)
* Allow passing str to Python 2's bytearray.extend. (#3223)
* Mark some types as non-hashable (#3219)
* ssl.pyi: Add functions, support Path (#3044)
* Type response of Flask test client methods: get, post, etc. (#2904)
* Use Literal to improve tempfile.[Named]TemporaryFile. (#3215)
* Update pyre_extensions stub (#3214)
* Mark ParamType.fail() as NoReturn (#3213)
* Remove custom _Text type (#3211)
* Make target optional in contextlib redirecting managers (#3212)
* requests: Allow bytes for url parameters. (#3209)
* Add unquote_to_bytes to Python 3 six.moves.urllib.parse. (#3208)
* Add typestubs for unittest.util (#3186)
* doctest: fix type of DocTestParser.get_doctest(lineno) (#3206)
* Make inplace sorting require mutable sequences in bisect module (#3199)
* Add sys.flags.utf8_mode. (#3205)
* zipfile.ZipFile: Add start_dir attribute. (#3203)
* create_server returns a Server, not AbstractServer (#3131)
* cadata param can (and PEM-encoded cadata must) be unicode under PY2 (#3150)
* Update how mock classes alias to Any (#3182)
* adds threading related members to queue.pyi (#3198)
* multiprocessing.Value can also take a Type (#3200)
* Add stubs for CGIHTTPServer (#3196)
* builtins: int.__pow__ can take a modulo argument (#3192)
* builtins,numbers: harmonize float.__round__ and Real.__round__ (#3193)
* builtins: add __trunc__ to int and float (#3194)
* Remove unnecessary quotes around forward references. (#3191)
* Make most contextmanager `__exit__` signatures return Optional[bool] (#3179)
* Partially restore old (imprecise) signature of Match.group() (#3190)
* Fix #3187 : Wrong Signatures in socketserver (#3189)
* Update __import__ function annotations (#3188)
* Fix a typo (self -> cls) in stdlib/2/subprocess.pyi. (#3185)
* Add Match.regs (#2819)
* Update URL: python/black → psf/black (#3180)
* Implement ZipExtFile in the zipfile type stubs (#3074)
* Add some redis types (#3092)
* Widen the annotation of os.write to include buffer. (#3109)
* Improve type of tornado.testing.gen_test. (#3174)
* Use Literal in a few more places (#3176)
* Improve werkzeug exceptions slightly (#3178)
* Fix Match.group problems (#3172)
* Move some constants from tokenize to token in Python 3.7+. (#3175)
* make basicConfig parameters Optional[...] (#3170)
* concurrent: add private classes and exceptions (#3169)
* Add missing methods to asyncio stubs (#3088)
* Improve enums (#3168)
* Add nbytes to the memoryview definition (#3167)
* Declare asyncio.as_completed() as taking an Iterable (#3164)
* Add type annotations for Python 3 html.entities (#3161)
* Precise the type of Python 2 htmlentitydefs module (#3163)
* Remove unused import from stdlib/2/htmlentitydefs.pyi (#3162)
* flask: allow view func body to be dict (#3149)
* Require the newest pytype version, with a pyi parser fix. (#3160)
* Fix type annotations for get_wch / unget_wch (#3157)
* inspect: use more specific arg type for some source retrieve functions (#3155)
* Add hints for 3 globals from logging/__init__.py (#3159)
* curses: getch returns an integer (#3156)
* Add attributes to xml.etree.ElementTree.ParseError. (#3158)
* dateutil.rrule can take dates (#3154)
* Remove Python 3.4 support (#3147)
* [stdlib][3] Add missing typing.OrderedDict generic stub for Python 3.7.2 (#3153)
* Allow function.__code__ in Python 2 (#3152)
* Use pytype.config.Options.create() for prettier code. (#3151)
* Fix incorrectly named parameters in logging module (#3148)
* gettext stubs fixed (#3130)
* Travis: run mypy with Python 3.8 as well (#3146)
* Add zipfile.ZipFile.filename (#3104)
* xml.etree.ElementTree: use literal type for a more precise return value for tostring() (#3120)
* Fix __call__ type for GeneratorContextManager (#3143)
* inspect: get{doc,comments,module,sourcefile} can return None (#3137)
* warnings: ignore the type of category when message is a Warning (#3121)
* Add werkzeug.middleware (#3103)
* Fix ast.Constant availability (#3142)
* Upgrade flake8* and isort versions (#3141)
* json: require a JSONDecoder/JSONEncoder in cls (#3138)
* Update google RepeatedCompositeFieldContainer (#3136)
* faulthandler.dump_traceback_later: timeout can be float (#3134)
* remove itertools.accumulate from Python 2 stubs (#3135)
* Fix python 2 subprocess.Popen to produce Popen[bytes] (#3133)
* Make python 2 subprocess consistent with python 3 (#3132)
* Update socket exceptions (#3127)
* Fix the definition of nsmallest() in stdlib/2 and 2and3/heapq.pyi (#3114)
* Remove mypy new analyzer tests (#3128)
* Add __eq__ to protobuf containers (#3126)
* Added Optional (#3125)
* Overload the constructor of subprocess.Popen (#3113)
* Make SyntaxError.text be optional (#3119)
* Re-export _curses._CursesWindow from curses (#3117)
* Add curses.COLORS and curses.COLOR_PAIRS (#3115)
* Update required pytype version to one that supports `async def`. (#3112)
* Slice attributes can be of any type. (#3024)
* sys: refine the return type of sys.exc_info() (#3111)
* Use Literal overloads to give better types to subprocess (#3110)
* BytesGenerator requires BinaryIO (#3106)
* Add types to FileStorage (#3067)
* Improving Flask stubs (#3003)
-------------------------------------------------------------------
Sat Jul 20 07:48:20 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>