3181216
%global checkout 8f47637
3386852
3386852
Name:           python-typeshed
3386852
# There are no actual releases of typeshed so we are making one up
3386852
Version:        0.1
4cdb6de
Release:        0.20170615git%{?dist}
3386852
Summary:        Static type information for python modules
3386852
3386852
License:        ASL 2.0
3386852
URL:            https://github.com/python/typeshed
CAI Qian 4582c33
# git archive --prefix=typeshed-0.1-7c706e1/ 7c706e1 | gzip -c9 >typeshed-0.1-7c706e1.tar.gz
3386852
Source0:        typeshed-%{version}-%{checkout}.tar.gz
3386852
3386852
BuildArch:      noarch
3386852
3386852
%description
3386852
Typeshed models function types for the Python standard library
3386852
and Python builtins, as well as third party packages.
3386852
3386852
This data can e.g. be used for static analysis, type checking or type inference.
3386852
3386852
This package stores the typedata in /usr/share/typeshed
3386852
3386852
%prep
3386852
%autosetup -n typeshed-%{version}-%{checkout}
3386852
3386852
%build
3386852
# All stub files, nothing to build
3386852
3386852
%install
3386852
mkdir -p %{buildroot}/%{_datadir}/typeshed
c3d7dc4
for dir in stdlib third_party ; do
3386852
    cp -r $dir %{buildroot}/%{_datadir}/typeshed/$dir
3386852
done
3386852
3386852
%files
3386852
%doc README.md
3386852
%license LICENSE
3386852
%{_datadir}/typeshed
3386852
3386852
%changelog
4cdb6de
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-0.20170615git
4cdb6de
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4cdb6de
8d43e7e
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-0.20170614git
8d43e7e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8d43e7e
828e444
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-0.20170613git
828e444
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
828e444
3181216
* Mon Jun 12 2017 Gwyn Ciesla <limburgher@gmail.com> - 0.1-0.20170612git
3181216
- Latest upstream.
3181216
9b49c35
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-0.20161223git
9b49c35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9b49c35
CAI Qian 4582c33
* Thu Dec 22 2016 CAI Qian <caiqian@redhat.com> - 0.1.0-20161222
CAI Qian 4582c33
- Update to the latest upstream 7c706e1
CAI Qian 4582c33
3fdcf82
* Mon Jul 18 2016 David Shea - 0.1.0-20160713
3fdcf82
- Add http_client to six.moves, add missing functions to urllib2 fix some types in gettext
3fdcf82
- Fix types.MappingProxyType
3fdcf82
- Fix heapq.merge signature for Python >= 3.5
3fdcf82
- Add full class definitions for Process, Queue, and Lock
3fdcf82
- Make Empty a subclass of Exception
3fdcf82
- add types to logging
3fdcf82
- make xml.etree.ElementTree.Element a Sequence
3fdcf82
- Improve socket py2
3fdcf82
- Improve http
3fdcf82
- Add logging.WARN; TextIO -> IO[str]
3fdcf82
- Fix log() signatures; change msg: str to msg: Text.
3fdcf82
- Changed all regular expression findall() to return list[Any].
3fdcf82
- Allow use of kwargs in MutableMapping.update
3fdcf82
- add types to socketserver for py2
3fdcf82
- fix sys.exc_info return type
3fdcf82
- Fix argument type for datetime.now.
3fdcf82
- re methods' pattern-parameters don't affect the return value anymore
3fdcf82
- fleshing out some more stubs for sqlalchemy
3fdcf82
- Fix argument type for configparser.write
3fdcf82
- Add TYPE_CHECKING = True
3fdcf82
- Fix email typing errors
3fdcf82
- First cut at stubs for pymssql.
3fdcf82
- Make os.name `str` in python 3.
3fdcf82
- changed format_exception to use BaseException as value
3fdcf82
- Added os.sync, os.truncate and os.fwalk for Python version >= 3.3
3fdcf82
- Use "..." for attribute values, instead of None, [], {}
3fdcf82
- csv module: make reader() and writer() return types private and non-abstract
3fdcf82
- add stub for stdlib abc.ABC in python 3.4+
3fdcf82
- a few more stubs for sqlalchemy
3fdcf82
- Fix names of several stat constants
3fdcf82
- difflib functions return Iterators, not Iterables
3fdcf82
- Add stub for statvfs and type for fstatvfs (2.7)
3fdcf82
- Use unicode rather than str for os env functions
3fdcf82
- adding type-specific assertEqual cases
3fdcf82
- Add stubs for importlib.__init__
3fdcf82
- Use actual base type
3fdcf82
- Annotate **kwargs with dictionary value type only
3fdcf82
- stdlib: StringIO - Add len attribute
3fdcf82
- Fix bad syntax in two stubs.
3fdcf82
- Implement stubs for importlib.abc and update types.ModuleType
3fdcf82
- Add stubs for importlib.machinery
3fdcf82
- Add tarfile.open
3fdcf82
- Add stubs for importlib.util
3fdcf82
- fix return type for traceback.format_exception
3fdcf82
- Make the 'symmetric' argument to SQLAlchemy's between optional.
3fdcf82
- Add exec to Python 2 builtins
3fdcf82
- Set a default value for output in CalledProcessError.__init__
3fdcf82
- ModuleType has a __file__ attribute.
3fdcf82
- Fix some stubs in urllib.parse
3fdcf82
- email.header: Make decode_header also accept str.
3fdcf82
- Added JSONEncoder and JSONDecoder to stdlib/2.7/json.pyi
3fdcf82
- os: Add buffering to fdopen.
3fdcf82
- Add stubs for dis and opcode
3fdcf82
- Attempt to reduce cyclical dependencies between types and importlib.
3fdcf82
- Add types to stub for warnings module.
3fdcf82
- Fix signatures of call, check_call and check_output in subprocess
3fdcf82
- Correct type of formatter_class arg to ArgParse()
3fdcf82
- improve unittest
3fdcf82
- First pass at dateutil
3fdcf82
- Add stdlib/2.7/traceback._print
3fdcf82
- Update set methods to take multiple iterables
3fdcf82
- Add cmp to list.sort in python 2.7
3fdcf82
- __builtin__: Fix bytearray on python 2
3fdcf82
- add bytearray.insert
3fdcf82
- add some types to os
3fdcf82
- merge py2 and py3 argparse
3fdcf82
- Two small changes to help the mypy test suite pass
3fdcf82
- Fix some issues for dateutil and argparse
3fdcf82
- subprocess: Fix return type of check_output.
3fdcf82
- Add stub for boto.exception
3fdcf82
- add default arguments to traceback.format_exception
3fdcf82
- add ChainMap class to collections module
3fdcf82
- More fixes for argparse.
3fdcf82
- builtins: Remove Exception.message.
3fdcf82
- Mypy stub fixes for strict optional mode
3fdcf82
19a217e
* Mon Jun 13 2016 David Shea - 0.1.0-20160603git
19a217e
- Added type annotations and small fixes
19a217e
- Add stub version of Type[C]
19a217e
- Don't use basestring in tempfile stub
19a217e
- Added stdlib/2.7/getopt.pyi, updated 3/getopt.pyi
19a217e
- Fix setsockopt signature.
19a217e
- specifiy Callable in sys.call_tracing
19a217e
- more closely fit to html.parser documentation
19a217e
- Improve email.*
19a217e
- add types to sys.getrefcount
19a217e
- complete urllib
19a217e
- add types to socket.socket.send{,all}
19a217e
- complete socketserver
19a217e
- complete ssl
19a217e
- Initial stubs for tkinter
19a217e
- Support for 'from six.moves import http_cookies'
19a217e
- Correct return value of round in Python 2.
19a217e
- Fixes a few tzinfo method's return type
19a217e
- Update calendar.pyi `timegm` to accept arbitrary length tuples
19a217e
304949a
* Fri May 20 2016 David Shea - 0.1-0.20160520git
304949a
- add AST.__init__ annotation
304949a
- Change datetime.datetime.astimezone tz argument type from timezone to tzinfo
304949a
- A couple new definitions, some more unicode for 2.7
304949a
- Fix html.escape signature
304949a
- Add types for gettext
304949a
- Fix type of getsockopt
304949a
- type `errors` in codecs.EncodedFile
304949a
- Add __version__ to requests
304949a
- Use __delete__, not __del__, in class property.
304949a
- getpass return str
304949a
- Make property a type
304949a
- Almost all re functions take a compiled pattern.
304949a
- Add note about not using basestring in tempfile
304949a
- Accept more unicode in 2.7 tempfile stubs
304949a
- Add some missing "type" attributes
304949a
- fix integration of io with mypy
304949a
- Add apply() and coerce() to 2.7 builtins.
304949a
- Add __future__.generator_stop for Python 3.5
304949a
- Fix subprocess stubs
304949a
- improve io
304949a
- Add os.replace()
304949a
- enable string arguments for start, end, and span methods of Match object
304949a
530670c
* Tue May 17 2016 David Shea - 0.1-0.20160505git
530670c
- Fix and greatly expand stubs for sqlalchemy.
530670c
- Expand the sqlalchemy stubs related to the Column model.
530670c
- Type Check webbrowser py3 module
530670c
- Add missing exec*, EX_* stubs for python 2 and fix py3 types.
530670c
- Add py2 webbrowser type checking
530670c
- Fix urlunparse stubs for 2.7 to correctly support a list/iterator argument
530670c
- Improvements to builtins min/max
530670c
- Add missing definition of compile() for 2.7.
530670c
- Add abc.abstractproperty (Python 3)
530670c
- Fix incorrect sys.exit() type.
530670c
- Additional type information for asyncio
530670c
- Fix type for reduce
530670c
- Remove invalid Python 3 syntax
530670c
- Fix asyncio.coroutine signature
530670c
- Stub for calendar module
530670c
- Stub for shelve
530670c
- Remove contents of problematic asyncio __all__s
530670c
- Fixed 2.7 stubs for traceback
530670c
- Specify attribute types of SyntaxError
530670c
- Define three argument type() overload (Python 3)
530670c
- reduce use of @overload in socket stubs
530670c
- Update stub for zlib
530670c
- Update stub for gc
530670c
- Add stub for multiprocessing.cpu_count()
530670c
- Stubs for pdb (only the most useful functions).
530670c
- Add missing import of List from typing.
530670c
- Fix traceback.pyi right.
530670c
- Fix typos: termina[ta]te()
530670c
- Make tests version-aware.
530670c
- Type check xml.etree module
530670c
- Improve Python 2.7 inspect stub
530670c
- sqlite3 stub for 2.7  and 3
530670c
- Fix Python 2.7 inspect stub (currentframe + frame type)
530670c
- Improve Python 3 inspect stub
530670c
- Add tornado.locks module
530670c
- Make all function annotations accessible from builtins complete
530670c
- Allow adding custom argparse.Actions in add_argument
530670c
- Bandaid for sqlalchemy.
530670c
- Stubs for setuptools' pkg_resources package
530670c
- Ignore Emacs backup files
530670c
- Complete getpass stubs
530670c
- Add stubs for configparser
530670c
- Complete pickle stubs
530670c
- Complete pickle and cPickle stubs for Python 2
530670c
- remove superfluous type comment in urllib.pyi
530670c
- Better stub for contextlib.contextmanager.
530670c
- add stdlib/2.7/heapq.pyi
530670c
- Use IO[bytes] instead of BytesIO in the pickle stub.
530670c
- Improve Python 3 fcntl stub
530670c
- Add version keyword arg to argparse.ArgumentParser.add_argument
530670c
- Fix signature for reduce in some files.
530670c
- Hopeful fix for fcntl stubs
530670c
- fileinput first version
530670c
- Update dbapi2.pyi to allow `execute` without binding params
530670c
- add `__dict__` attribute to class instance
530670c
- Add note about obtaining consent of package owner for third-party stubs.
530670c
- Implement itertools.chain.from_iterable().
530670c
- Added stubs for 2.7 Selenium WebElement
530670c
- Add missing return type for __init__()
530670c
- Add 2.7/optparse.pyi
530670c
- change ='' to :str=... in httplib
530670c
- Move warnings.pyi into 2and3/.
530670c
- Enable typing.DefaultDict as an alias for collections.defaultdict
530670c
- Precision surgery to take out sqlalchemy test failures
530670c
- Fix select stub for 2.7
530670c
- Various updates to stdlib modules
530670c
- py3: traceback.pyi: added format_stack
530670c
- Add a very basic bz2 stub
530670c
- Simple stub for tornado.testing
530670c
- Break cycle between typing and collections.
530670c
- Update dict(...) to accept keyword arguments
530670c
- Add Text to typing.pyi
530670c
- Support keyword arguments for dict() (Python 2)
530670c
- 2.7 stub updates
530670c
- Add stdlib/3/tokenize.pyi
530670c
- Change logging signatures to allow unicode
530670c
- Fix type error in 2.7 stubs
530670c
- Fixes to urllib2 stubs
530670c
- Make Queue generic in Python 2, similar to Python 3
530670c
- dateutil stubs
530670c
- Fix Py2 hashlib.new arg type
530670c
- Add stubs for typed_ast
530670c
- Add type.__call__.
530670c
- Add missing 3.3+ and 3.5+ math functions
530670c
- stdlib/2.7./codecs.pyi: added missing __enter__() and __exit__()
530670c
- Fixes to os.environ
530670c
- Use overloading rather than Union for MutableMapping.update
530670c
- Add abc.ABCMeta.register method
530670c
- json.dump{s,}' indent parameter also supports str
530670c
- pprint stream type
530670c
- Finish Python 3 hashlib stub
530670c
- Added bisect.pyi and ConfigParser.pyi
530670c
- Add Python 3 ast module; update Python 2.7 ast module; fixup typed_ast
530670c
- Fix 2.7 bisect stubs (lo/hi have defaults).
530670c
- Misc stub fixes
530670c
3760f86
* Mon Feb 22 2016 David Shea - 0.1-0.20160222git
3760f86
- Better approach to testing.
3760f86
- Fix and greatly expand stubs for sqlalchemy.
3760f86
- Expand the sqlalchemy stubs related to the Column model.
3760f86
- Type Check webbrowser py3 module
3760f86
- Add missing exec*, EX_* stubs for python 2 and fix py3 types.
3760f86
- Add py2 webbrowser type checking
3760f86
- Fix urlunparse stubs for 2.7 to correctly support a list/iterator argument
3760f86
- Improvements to builtins min/max
3760f86
- Try using "pip install -U ..." to install mypy
3760f86
- Add missing definition of compile() for 2.7.
3760f86
- Add abc.abstractproperty (Python 3)
3760f86
- Fix incorrect sys.exit() type.
3760f86
- Additional type information for asyncio
3760f86
1102726
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-0.20160129git
1102726
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
1102726
2f15d39
* Thu Jan 28 2016 David Shea <dshea@redhat.com> - 0.1-0.20160128git
2f15d39
- Add timer class to threading.pyi
2f15d39
- Assorted stub updates
2f15d39
- Some fixes to threading
2f15d39
- Add Iterable base class to csv.DictReader.
2f15d39
- Replace some unicode argument defaults with ...
2f15d39
- Use NamedTuple for inspect.ArgSpec and .FullArgSpec.
2f15d39
- Make Future stub resemble reality better.
2f15d39
- Make asyncio more Generator friendly
2f15d39
- Fix default parameter syntax.
2f15d39
- Fix os.environ improperly classified as not mutable for python 2.
2f15d39
- Implement fromhex and maketrans method
2f15d39
- Add missing re module constants for 2.7.
2f15d39
- Add message attribute to class BaseException.
2f15d39
- Fix several python 2 library stub errors.
2f15d39
- Fix class file so it can be used as "with file(...) as f: f.read() # etc.
2f15d39
- Fix min()/max() overloading with key= parameter.
2f15d39
- Fix stubs for concurrent.futures
2f15d39
- Fix type for py2 traceback.format_exc and add to python 3.
2f15d39
- Add stubs for traceback.format_exception.
2f15d39
- Port stub for os.walk from python 3 to 2 and cleanup comment.
2f15d39
- Fix datetime.timedelta() argument types to be floats.
2f15d39
- Add a Travis CI configuration.
2f15d39
- Add stdlib/2.7 to Travis CI tests.
2f15d39
- Test 2and3, 3.3, 3.4.
2f15d39
- Add stubs for some of the most heavily used parts of six.moves
2f15d39
- Revert "Fix min()/max() overloading with key= parameter.
2f15d39
- Fix signature for 2.7/binascii.crc32().
2f15d39
- Fix constructor signatures to 2.7/cPickle.{Pickler,Unpickler}.
2f15d39
- Copy frozenset stubs from 3/builtins.pyi into 2.7/__builtin__.pyi.
2f15d39
- Add 2.7 stubs for dict.fromkeys().
2f15d39
- Fix ast.parse(). The 2nd and 3rd arg are optional.
2f15d39
- Expand stubs for simplejson, unittest, email
2f15d39
- Comment out references to modules without stubs introduced by accident.
2f15d39
- Add html module stubs.
2f15d39
- Add various annotations to complete more of six.moves.
2f15d39
c3d7dc4
* Fri Jan 15 2016 David Shea <dshea@redhat.com> - 0.1-0.20160115git
c3d7dc4
- 2.7 does not have lru_cache()
c3d7dc4
- Add keyword args to stdlib's json.pyi
c3d7dc4
- Add Generator to 2.7/typing.pyi.
c3d7dc4
- Make Reversible covariant.
c3d7dc4
- Fix Reversible.__reversed__() return type.
c3d7dc4
- Add flush keyword arg to print()
c3d7dc4
- Move contents of builtins/* to stdlib/*. This simplifies finding stubs.
c3d7dc4
- Remove outdated things from README.
c3d7dc4
- Make deque inherit from MutableMapping (with difficulty).
c3d7dc4
e5e918d
* Mon Jan 11 2016 David Shea <dshea@redhat.com> - 0.1-0.20160111git
e5e918d
- Fix types for timetuple and utctimetuple
e5e918d
- Fix Python 3 six.moves
e5e918d
- Have ast.pyi re-export symbols from _ast.pyi.
e5e918d
- Unify 2.7 and 3 stubs for functools.
e5e918d
- Enhance type information for lru_cache
e5e918d
e5e918d
* Thu Jan  7 2016 David Shea <dshea@redhat.com> - 0.1-0.20160107git.1
f5443ee
- typing: update 2 to match 3 on Sequence and Container
f5443ee
- builtins: Reversible is redundant when Sequence is already present
f5443ee
- Add __version__ to _ast.pyi.
f5443ee
- add Python 2 stubs for ast, tokenize
f5443ee
- Improve Python 2 stub for abc; _weakrefset stub.
f5443ee
- Update shlex.pyi
f5443ee
- Update random.pyi
f5443ee
- Add abstractproperty.__new__ so it can be used.
f5443ee
- Add object.__new__ so it can be called.
f5443ee
- Update 2.7 built-in set to be the same as PY3 set.
f5443ee
- Swap max() and min() overloads so max(x, y) and min(x, y) work as expected.
f5443ee
- Improve 2.7 stub for tempfile.
f5443ee
- Simplify SystemRandom now it subclasses Random, for 2.7 and 3.
f5443ee
- Add object.__setattr__ for 2.7.
f5443ee
- Simplify PY3 len() spec, no Union with tuple needed.
f5443ee
- Some updates now typing.Container is defined.
f5443ee
- Add cStringIO, cPickle to six.moves. Add six.moves for PY3.
f5443ee
e1b783e
* Fri Dec 18 2015 David Shea <dshea@redhat.com> - 0.1-0.20151217git.1
e1b783e
- Rebuild with the correct prefix in the source archive
e1b783e
dad1a31
* Fri Dec 18 2015 David Shea <dshea@redhat.com> - 0.1-0.20151217git
dad1a31
- Share operator stubs in 2and3
dad1a31
- Make attrgetter, itemgetter and methodcaller in operator usable
dad1a31
3386852
* Tue Dec 15 2015 David Shea <dshea@redhat.com> - 0.1-0.20151205git
3386852
- Initial package