------------------------------------------------------------------- Thu Jul 04 12:14:29 UTC 2019 - mimi.vx@gmail.com - Update to version 0.0.1+git.1562136779.4af283e1: * Fix HTTPConnection.putrequest parameter names (#3101) * Add in multiprocessing.managers.ValueProxy types (#3100) * PurePath methods accept os.PathLike[str] from 3.6 (#3099) * Fix contextlib GeneratorContextManager name for py>=3.2 (#3083) * QueueHandler / QueueListener accept SimpleQueue too (#3098) * xml.etree.ElementTree: fix missing None in get(), findtext() return type (#3093) * Add Generic Typing to Queue.PriorityQueue and Queue.LifoQueue in python 2 (#3036) * Add TLSVersion & related attributes to SSLContext (#3097) * Make dataclasses.Field.metadata non-optional (#3094) * Add undocumented methods codecs.utf_16_be_{decode,encode}. (#3091) * Restore default value to click.echo_via_pager (#3090) * Install Black and isort autoformatters (#3069) * itsdangerous: update JSONWebSignatureSerializer.dumps return type (#3082) * "key" argument of builtin function sorted should be optional in python 2.7 (#3086) * Fix annotation of re.Match 'lastindex' and 'lastgroup' in Python 3 (#3085) * fix type of loop.sock_connect (#3073) * Revert "Define functools.partial as overloaded function instead of its own class (#2878)" (#3077) * Add mp_context parameter to concurrent.futures.ProcessPoolExecutor (#3078) * fix ssl.Purpose type in py3 (#3054) * Add types and functions in types.py that are new in 3.7 (#3066) * Refactor tests/pytype_test.py (#3065) * change http.cookies.Morsel to Dict[str, Any] (#3060) * Represent the use of IntEnums in functions in socket.py. (#3009) * HTMLParser.get_starttag_text() can return None (#3072) * redis: Add some type hints (#3055) * Sync recent typing and typing_extensions updates (#3070) * Overload ast.parse to recognize that mode=exec means Module return. (#3039) * str and unicode format functions take objects (#3068) * ssl.pyi: fix types of cadata argument (#3063) * Marshal dumps/loads uses bytes (#3061) * Update select and selectors to use _HasFileno protocol (#3057) * Adding stubs for pyre_extensions (#3056) * Add redis stream methods to the client stubs (#3051) * request.pyi: Change Union[] -> Any for attributing status. (#3045) * Add missing path-like annotation (#3053) * Add a few Redis types (#3016) * Use type annotation syntax (#3048) * Mark asyncio loop parameters as Optional (#3047) * dateutil: byweekday can take weekday (#3046) * Add `copy()` method to requests.Session.headers (#3043) * Add missing constructor to types.CodeType. (#3040) * Add undocumented but used method LWPCookieJar.as_lwp_str. (#3041) * Add new semantic analyzer to mypy tests (#3037) * Add stub for queue.SimpleQueue in 3.7 (#2995) * Add FullLoader and FullConstructor classes to yaml (#3035) * Added tojson_filter and detect_encoding to flask.json (#3030) * Annotate HTMLParser attribute optional value (#3034) * Add a "pull requests welcome" batch (#3033) * Use custom tuple subclass for pwd.struct_passwd (#3017) * Make AsyncGeneratorType.aclose() properly return Awaitable[None] (#3032) * click: Use property decorator for read-only properties (#3028) * Update Click to 7.0 (#3027) * Move stdlib/3/curses to stdlib/2and3/curses. (#3025) * fix Sniffer.sniff return type (#3023) * Move Redis stubs to 2and3 (#3015) * [pyre] Adding IntVar to typing_extensions (#3008) * argparse.pyi: Allow Callable[[Text], _T] (#3013) * Make Timer args less restrictive (#3007) * Use typing.Text for argument types (#3000) * Allow is_dst=None in pytz.BaseTzInfo.localize() (#3002) * Add missing methods to ItemsView and KeysView, including isdisjoint (#2997) * Bound arguments are ordered (#2998) * Implement SupportsIndex (#2996) * Add sys.breakpointhook() and sys.__breakpointhook__ (#2991) * Add undocumented member glob.has_magic (#2972) * Add missing annotation in cmath module (#2989) * Remove all pyi files that use nested classes from the pytype blacklist. (#2993) * fix CI (#2992) * Convert typing.ContextManager.exit to use dunder parameter names (#2980) * Remove redundant variable definitions in ast module (#2986) * Fix typos in yaml stubs (save_* -> safe_*) (#2985) * Update dateutil to 2.7.5 (#2694) * Add functions to six.moves.urllib.request (#2982) * Always use fully qualified names to refer to nested classes. (#2983) * Have click.style return a str (#2981) * Add an optional opener parameter to open() function (#2977) * Add new show_choices argument to click options (#2978) * Unblacklist more third_party stubs from pytype parsing. (#2975) * Split unittest stubs and add a few field (#2973) * Add subprocess.list2cmdline for python 2 (#2971) * Add TypedDict to typing_extensions (#2940) * Add py3.7 support to Future.add_done_callback (#2970) * Add stub for asyncio.BaseEventLoop (#2960) * Add annotation for Future._callbacks (#2965) * add types.FunctionType.__init__ (#2968) * allow callables in dis() (#2969) * narrow signature of __contains__ for str-like classes (#2967) * Make pytype happy with the third_party click stubs. (#2966) * add autocomplete to click decorators (#2705) * Adjust indentation of TODOs in third_party/2/gflags.pyi. (#2964) * Fix Future.__init__'s loop variable annotation (#2961) * Add annotation to Future._loop (#2959) * Fix typo: __builtins__ should be __builtin__. (#2963) * Remove some files from pytype's third_party blacklist. (#2962) * Bleach stubs: fix typos, use protocol classes (#2957) * Define functools.partial as overloaded function instead of its own class (#2878) * Make the signature of ConfigParser.get() polymorphic (#2406) * add click.types.DateTime to click stubs (#2958) * yaml.dump(..., stream) is optional (#2289) * Switch pytype_test from a whitelist to a blacklist for third_party. (#2956) * unittest: Add overloads to assert(Not)AlmostEqual(s) (#2901) * Added defs for undocumented attrs on enums (#2941) * Annotate `copy` for MappingProxyType (#2955) * Use dunder parameter name in `_Writer.write` (#2954) * Use dunder parameter name in `Container.__contains__` (#2953) * Added termios.error (#2951) * Update Black URL (#2950) * fix type of msg argument to HTTPRedirectHandler.redirect_request (#2949) * click/types.pyi: Add case_sensitive wrt click 7.0 (#2948) * Change WatchedFileHandler to inherit from FileHandler (#2947) * config.pyi: Return a Thread instance (#2945) * add BadRequestKeyError (#2944) * Remove MutableMapping from requests.Session.cookies's type (#2946) * itertools.pyi: Replace Iterable with Iterator. (#2943) * Positional-only arguments for built-in functions. (#2921) * Add initializer for http.cookiejar.Cookie (#2932) * socket: add .set_inheritable() (#2935) * Specify default = ..., positional-only for orjson API (#2936) * Remove format_map from Python 2 unicode. (#2933) * Make shlex.shlex convertable to a list in Python 2. (#2927) * Correct the type signature of assertRaisesRegexp (#2926) * Make loop optional in asyncio.Queue (#2923) * locale.format_string takes strings and numbers, too. (#2922) * Add stub for multiprocessing.Value.get_lock() (#2920) * Use variable annotations everywhere (#2909) * KeysView and ItemsView should accecpt Iterable argument in set operation (#2906) * Make os.altsep Optional on non-win32 platforms (#2918) * Add @typing.type_check_only (#2679) * Fix quit's argument and return types to match those of exit. (#2915) * Fix TextTestResult and TextTestRunner in unittest (#2910) * threading.Lock issue when using it with ExitStack (#2908) * Add type hints for the turtle module (#2905) * Fix some issues with __round__ (#2907) * Complete the stub for _thread.pyi. (#2900) * flask.Flask.run: port can be str (#2903) * Add six.moves types for email_mime sources. (#2902) * reword "What to include" (#2861) * Fix typo in FrameType 3.7 attributes (#2899) * Update pytype_test to remove now-unnecessary parse-only functionality. (#2897) * Accept bytes as 1st argument of `simplejson.loads` (#2896) * Add mmap as a valid buffer type. (#2895) * werkzeug: ETagRequestMixin's functions are properties (#2894) * tempfile.mkdtemp() should return a str when passed no arguments. (#2893) * yaml: add full_load and full_load_all stubs (#2892) * Added excepthandler to ast stubfiles (#2891) * Add a type: ignore as a hacky workaround for some mypy bazel issues (#2887) * [builtins] Add 'AST' type to 'source' parameter for 'compile()' (#2889) * Fix a py2 parameter type in string.Template.(safe_)substitute. (#2888) * Add overloads for min/max that don't take default (#2885) * Add missing dateutil.tz.UTC (#2883) * Fix werkzeug.UserAgentMixin annotation (#2881) * [third_party/click] add Exit exception definition (#2880) * [re] Add attribute '_pattern_type' to re. (#2877) * Add missing BaseException.__suppress_context__ attribute (#2876) * Add missing class pdb.Pdb. (#2872) * Add unicode support to py2 string.Template. (#2871) * Add attribute queue.Queue.queue. (#2870) * Add tarfile.filemode. (#2869) * Move pydoc from 2/ to 2and3/. (#2873) * Remove asyncio.tasks from the pytype blacklist. (#2874) * Speed up pytype_test by reducing subprocess calls. (#2868) * move pycurl.pyi from 2 to 2and3 (#2867) * Remove an unused import from stdlib/3/importlib/__init__.pyi. (#2866) * Update signature of webbrowser.register for Python 3.7 (#2865) * Use protocol for print() file argument (#2848) * Click: add 'length' and 'label' properties to ProgressBar. (#2860) * Fix several Flask types (#2858) * Add timeit.main (#2731) * Support new ast features and node types introduced in Python 3.8 (#2859) * [traceback] Expose print_list method in traceback for python3. (#2837) * email.mime.application.MIMEApplication expects data to be bytes, while it should be Union[str, bytes] (#2855) * Add email.charset.SHORTEST, QP, BASE64 to the stub for Python 2 (#2857) * Make vars arguments Optional, as they default to None (#2853) * Add logging.Formatter.formatMessage method (#2850) * asyncio: make type alias private and CamelCase (#2849) * Add stubs for bleach (#2709) * [asyncio] Change _set_running_loop(loop: AbstractEventLoop) to _set_running_loop(loop: Optional[AbstractEventLoop]) (#2828) * Update asyncio streams stub (#2845) * Update attr stubs to 19.1.0 (#2846) * Added missing default value annotation (#2841) * Fix inconsistent self/cls parameter names (#2838) * Changed parameter name of several methods in logging module from 'lvl' to 'level' to match the implementation. Use in a keyword arg of 'lvl' results in runtime errors. (#2840) * Removed extraneous import statement that was redefining three symbols in markupsafe/__init__.py. This redefinition triggered type checking/linting errors. (#2842) * Add isascii methods to str, bytes, and bytearray [Python 3.7]. (#2834) * Improve min/max (#2833) * Prefer Mapping to Dict for input of csv DictWriter methods. (#2829) * Add sunder names to enum (#2822) * Make 2.7's json.load use a protocol for fp (#2826) * Add itermonthdays3 and itermonthdays4, fix incorrect 'cssclass_today' (#2825) * multiprocessing.spawn submodule and multiprocessing.pool stubs (#2823) * make IMapIterator a subclass of Iterator (#2814) * Make urllib2.urlopen return a non-optional addinfourl (#2821) * fix some minor lint errors (#2820) * Revert "Fixing signature for Mapping.get's default parameter (#2810)" (#2817) * README.md suggests running tests with PYTHONPATH instead of MYPYPATH (#2813) * Fix signature of asyncio.create_connection. (#2756) * fix undefined name in flask stub (#2811) * fix missing space in imghdr (#2812) * Genericize types for stringly typed methods on google.protobuf.Message (#2807) * Fixing signature for Mapping.get's default parameter (#2810) * Add Restart to pdb.pyi (#2805) * Remove redundant definition of ast.PyCF_ONLY_AST (#2803) * Add some urllib2 annotations (#2688) * socket: timeout may be None (#2801) * Add some missing annotations in cyaml (#2769) * Fix named tuple name in posix.pyi (#2800) * Remove an unnecessary entry from the pytype blacklist. (#2799) * Fix Flask stubs for dispatch_request (#2796) * Remove pytype workaround in os/__init__.pyi. (#2797) ------------------------------------------------------------------- Tue Feb 19 09:58:16 UTC 2019 - Tomáš Chvátal - Fix the URL and set author in changelog entries ------------------------------------------------------------------- Thu Feb 14 17:25:37 UTC 2019 - mcepl@suse.com - Update to version 0.0.1+git.1550076324.0989d950: * Fix groupby with key=None (#2794) * root_path cannot be None (#2792) * Added `Optional[]` around the `itertools.groupby()` `key` attribute to allow `None` to pass the type (#2790) * Fix Flask.config annotation (#2787) * Add stubs for HTTP Handler classes in py2/urllib2 & py3/urllib.request (#2710) * Make AsyncGenerator.aclose() properly return Awaitable[None] (#2786) * Add type hints for orjson (#2747) * Some small tweaks to Werkzeug stubs: (#2784) * Make `NamedTuple` accept `Text` names (#2762) * decorators.pyi: Add overload to option() (#2671) * __init__.pyi: Add __getitem__() to stat_result() (#2753) * Support *contiguous attributes of memoryview. (#2755) * Use a more accurate type for jwt.decode (#2765) * Fix signature of asyncio.create_server. (#2763) * Improve the stubs in charset.pyi under python3. (#2768) * requests.auth.AuthBase.__call__ deals with PreparedRequest. (#2759) * Support the errors arg in codecs factory functions. (#2752) * gflags: Add DEFINE_multi_enum. (#2783) * Add types to some cross-platform functions in the platform library (#2781) * Make SyntaxError.offset be optional (again) (#2782) * Update models.pyi (#2780) * Update stubgen link and add a bit more info (#2779) * Add hidden and deprecated click.Command options (#2778) * Add type annotation for collections.deque.__iadd__ (#2774) * pkg_resources: fix stub for get_metadata_lines (#2776) * pkg_resources Add PKG_INFO str attribute for Distribution class (#2775) * Create stubs for Flask (#2740) * builtins.pyi: Update __iadd__() and imul() in class list (#2754) * Fix six.raise_from value type (#2746) * Add SSLCertVerificationError fields (#2745) * logging: inherit TimedRotatingFileHandler from Handler (#2738) * Add missing explicit Optional to stubs for the xml.etree package. (#2734) * Fix `logging.getLevelName()` type hints (#2730) * add back StopIteration.value in Python 3 (#2744) * As of Python 3.6 dump_stats method allows PathLike object to be passed. (#2741) * Make metavar in argparse be Optional (#2739) * Fix type of indent in JSONEncoder (#2737) * Make ZipFile.NameToInfo use Text as the key type (#2736) * Fix the type of ord on python 2 (#2735) * Use a more accurate type for predicates in itertools (#2732) * Add SSLCertVerificationError for 3.7+ (#2729) * Update sqlite3 types to include extensions (#2728) * Use overlapped signatures of _winapi functions (#2723) * Fix unittest.TestCase assert methods' argument names (#2724) * Add stubs to classes in zipfile to better enable subclassing (#2707) * LoggerAdapter.log argument lvl -> level (#2722) * Sync attr stubs from attrs github repo (#2720) * Fixing type for asyncio.StreamWriter reader init parameter (#2719) * Make appropriate ast methods generic (#2715) * Add missing `currentframe` to `logging` module (#2712) * Merge Python 2 and 3 builtins.pyi (#2533) * Complete unittest.TextTestResult stubs (#2700) * Add missing attributes of type (#2544) * socket: Some more address typing (#2695) * Set correct type for _subparsersaction.choices (#2702) * Make mypy aware of IMapUnorderedIterator (#2701) * loop argument to asyncio.ensure_future is Optional (#2708) * Add stubs for six.ensure_{binary,str,text} functions (#2704) * Add Str.kind field to typed_ast stubs (#2699) * Add members marker and unsafe_name to pkg_resources.Requirement (#2693) * Add stubs for tabulate (#2384) * bytes/bytearray.startswith fixes (#2696) * Add missing ENOTSUP alias to errno (#2692) * Add pynamodb.models.Model.get_attribute and narrow down the type (#2689) * Logging (#2687) * macpath, os/path, posixpath and ntpath should basically be the same files (#2637) * Fix typo for `Message.add_attachment` in message.pyi (#2697) * Move posix.stat_result to os.stat_result on python 3 (#2683) * Task.current_task() and Task.all_tasks() have an optional loop parameter (#2690) * urllib2: timeout: int -> Optional[float] (#2685) * Fix signature of ConfigParser's dict_type argument (#2684) * Add get_loop() to asyncio.Future [Python 3.7] (#2680) * Add contextlib.nullcontext [Python 3.7]. (#2677) * Fix property annotation in `third_party/2and3/boto/connection.pyi` (#2675) * decimal.pyi: Add overload for Decimal.__round__() (#2674) * Fix signature of TypedDict has_key() (#2672) * Add 'Literal[...]' to typing_extension stubs (#2664) * Add mypy fallback class for TypedDict methods to mypy_extensions (#2670) * Guidelines for incomplete stubs (#2661) * Tweak how ast.pyi imports typing (#2668) * ast.pyi: Fix return type of generic_visit() (#2667) * [protobuf] add deterministc option (#2666) * Replace Loader with PEP 451 _Loader protocol in _importlib_modulespec.pyi annotations. (#2626) * builtins.pyi: Return complex from __(r)pow__() (#2662) * Make contribution guidelines state when to use (and not use) 'Any' (#2540) * Reference black, split long functions (#2651) * itertools.pyi: Allow omitting repeat argument in Python 3 (#2659) * Stop inheriting Sized in collection ABCs (#2658) * Revert "Move Sized earlier in the bases of Sequence (#2602)" (#2657) * Properly type the ToJsonString method of time well known types in google protobuf (#2656) * decorators.pyi: Add Any angument to Callable[] (#2654) * Revert "fix list concatenation (#2404)" (#2653) * Re-export pyexpat instead of using check_consistency (#2649) * staticmethod and classmethod can wrap any callable (#2650) * Unicode fixes for url2pathname() and pathname2url() (#2555) * Fix handling of logging args (#2635) * threading.pyi: Add currentThread for all versions (#2647) * [gflags] add known_only arg to __call__ (#2646) * __init__.pyi: Fix dump() (#2640) * yaml: Add __version__ attribute (#2636) * types.CodeType.co_filename isn't Optional. (#2639) * Improve overloads of parse_args() -- it never returns None (#2643) * Change argument type for xml.etree.ElementTree.iselement() to object (#2642) * Add stubs for the faulthandler stdlib module (#2627) * Add posix attributes for Python 3 (#2631) * Fix return type of datetime.datetime.dst (#2634) * Add __getnewargs__ to float, int, bool, str, bytes, unicode (#2632) * Added cyaml.pyi (#2613) * zipfile.ZipInfo.__init__ is the same on 2/3 (#2628) * Remove unneeded ignores (#2624) * sudo is not required anymore (#2618) * add __setattr__ to optparse.Values (#2622) * Update types for requests.adapters (#2614) * Add some distutils.dist.Distribution attrs (#2620) * Add stub for pytz.VERSION (#2619) * Added logging port constants to logging.handlers stub (#2617) * Accept upstream stubs when receiving no response (#2608) * Merge Python 2 and 3 versions of itsdangerous (#2564) * Add complete annotations to builtins.compile. (#2606) * Let ctypes._CData.from_buffer[_copy] accept any buffer object (#2610) * Replace non-ellipsis default arguments (#2550) * Fix stub for SpooledTemporaryFile (#2452) * Allow array[int] as a valid input to struct.unpack(). (#2586) * Document the Python 3.7 variant of subprocess.check_output (#2592) * Fix return annotation for asyncio.as_completed() (#2600) * Relax type for click.echo. (#2607) * Add optimize parameter to builtins.compile. (#2605) * Fix two small issues in `ctypes.Array` stubs (#2599) * Fix the return type for unittest.TestCase.run() (#2603) * Move Sized earlier in the bases of Sequence (#2602) * Expand Python 2's urllib.addbase definition. (#2601) * Annotate some missing http client and urllib APIs. (#2582) * Add missing stubs for multiprocessing.connection module. (#2596) * unittest.TestCase.assertRaises(): BaseException (#2594) * Fix typo in typing.pyi (#2595) * fix list concatenation (#2404) * Add options and extensions to google protobuf messages. (#2589) * Strengthen typing of datetime methods of Google protobuf's Timestamp. (#2590) * Simplify base64 input and output parameters. (#2587) * deque init() optional maxlen (#2585) * Make inspect.unwrap() stop argument optional. (#2583) * Add context manager to tarfile.TarFile (#2579) * Correct the param type for mapPriority (#2578) * Remove label descriptions from CONTRIBUTING (#2572) * Make _winapi.SetNamedPipeHandleState args Optional (#2571) * Add overrides for the methods 'readlines' and 'writelines' in TextIOBase. (#2551) * unittest: Complete assertRaisesRegex (#2568) * correct parse_args namespace attribute (#2566) * Remove version guard (#2565) * Remove third_party/3/enum.py (#2563) * Fix return annotation for loop.call_later() and loop.call_at() (#2559) * Fix return of patch() and patch.multiple() (#2520) * Make SyntaxError.offset be optional (#2557) * Fix py3 types of inspect.FullArgSpec.var(args|kw) (#2556) * Make backlog parameter optional in listen method (#2553) * Add is_dir method to ZipInfo class (#2554) * Flake8 fixes (#2549) * Fix email.parser.BytesParser and BytesHeaderParser method args (#2548) * Update to flake8 3.6.0 (#2547) * Allow json.dump to dump to BinaryIO again (#2546) * Make os.dup2 return int on Python 3.7 (#2543) * os.DirEntry.stat() accepts a follow_symlinks keyword argument (#2538) * Annotate jwt.algorithms (#2532) * fix lint error (#2541) * Annotate werkzeug wrap_file() and FileWrapper (#2519) * Rework .travis.yml and run with Python 3.7 where possible (#2536) * Makes enums accept objects in the argument type (#2539) * Fix typo in mmap const (#2537) * Add attributes to int and float (#2529) * Fix pytype test output (#2534) * Add cr_await, cr_code, cr_frame and cr_running to Coroutine (#2530) * Update PyJWT's exceptions (#2522) * Fix return type of ast.NodeTransformer.generic_visit (#2486) * loop argument for set_event_loop() is optional, it can be None (#2525) * Add UserString and UserList data attribute (#2518) * Add stub for pathlib2.Path.__div__ (#2507) * ImportFrom level cannot be optional (#2517) * click.option's defined type as return type of callable (#2505) ------------------------------------------------------------------- Sat Oct 13 11:26:43 UTC 2018 - mcepl@suse.com - Update to version 0.0.1+git.1539385126.cec22025: * Widen the type of the file argument to Python 2's json.dump. (#2516) * Fix _StrType in difflib in Python 2. (#2514) * Set urllib.parse.urljoin url argument to optional (#2513) * Inherit `InstanceType` from `object` (#2511) * Make csv.reader take Iterator[Text] argument instead of Iterator[str]. (#2508) * skip .git files from linting with flake8 (#2506) * Make _NetlocResultMixinBytes derive from _NetlocResultMixinBase[bytes], not [str] (#2503) * fix typing.Pattern in Python 2 (#2219) * Make 'datetime' a subclass of 'date'. (#2488) * Add new gflags names. (#2489)