Commit Graph

27 Commits

Author SHA1 Message Date
Nsukami _
5691ea6d6a Stubs for dateparser (#5778)
Stubgen and manual fixes.

Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-08-12 18:38:52 +03:00
Eric Traut
59624ff09c Updated pyright version to 1.1.160 (#5857)
* Updated pyright version to 1.1.160. Older versions contained a bug that prevented multiple third-party stub packages from having the same top-level module name.

* Disabled "reportUnsupportedDunderAll" diagnostic check for now.

Co-authored-by: Eric Traut <erictr@microsoft.com>
2021-08-06 09:21:57 +02:00
Sebastian Rittau
2410c4f751 Add missing items for distutils.command.* (#5773)
This was mostly generated by running stubgen. Existing annotations were
kept, but converted to use PEP 604 and PEP 585.
2021-07-24 14:04:17 -07:00
Vanessa Ung
2b4bbec0d7 Stubs for humanfriendly (#5790)
Autogenerated with stubgen + manual adjustments to fix e.g. namedtuple, Python versioning, removing unneeded imports, required stubtest packages/allowlist.
2021-07-24 14:01:26 -07:00
Shiva Raisinghani
e24f940c7d Stubs for braintree (#5789)
A library that provides integration access to the Braintree Gateway.

I started with stubgen, then cleaned up to address missing functions. Testing plan is to keep an eye on CI and fix any issues that arise.
2021-07-24 13:47:14 -07:00
Jukka Lehtosalo
1ad4b79139 Stubs for selenium (#5792)
These were generated using stubgen, with manual fixes. I tried to remove
exported names that are clearly not part of the public interface, but in many
cases this wasn't obvious so I left the exports, just in case.

I had to do major changes to exported names in `selenium.webdriver` to 
make it work as expected (this was originally implemented by @ilevkivskyi 
in our internal stubs).

Selenium has been working on adding inline type annotations, but it's not clear
when these will be released. The release will be 4.x, and having stubs for 3.x 
could still be valuable for users on older versions.
2021-07-24 13:43:24 -07:00
Jukka Lehtosalo
2d3bde439e Stubs for mysqlclient (#5791) 2021-07-19 10:28:00 +02:00
Jukka Lehtosalo
a0f199727b Stubs for psycopg2 (#5783) 2021-07-15 17:29:56 +02:00
Jukka Lehtosalo
937d31df69 Stubs for jsonschema (#5784) 2021-07-15 17:28:57 +02:00
Jukka Lehtosalo
6d7159c822 Stubs for prettytable (#5782) 2021-07-15 14:34:59 +02:00
Jukka Lehtosalo
2a4cc03307 Add stubs for jmespath (#5780) 2021-07-15 13:26:53 +02:00
Jukka Lehtosalo
e2fe224b52 Stubs for psutil (#5776)
I generated these using stubgen and made various manual tweaks to fix issues
reported by stubtest.

Some of the submodules with underscore prefixes are used by open source code,
so I'm including them.

Various definitions are platform-specific. I added some sys.platform checks, but
it's hard to get these right. We may need to iterate on them later.
2021-07-15 11:37:53 +01:00
Vanessa Ung
607aa37ee9 Babel stubs (#5775)
Basic stubs made with stubgen & manual fixes. Also, reorder 
pyrightconfig.stricter.json, I didn't realise it was mostly ordered 
when I added to it previously.
2021-07-14 09:24:19 +01:00
Shiva Raisinghani
0cd4ee39a2 Stubs for stripe (#5770)
A library that provides convenient access to the Stripe API from applications. 
It includes a pre-defined set of classes for API resources that initialize themselves 
dynamically from API responses.

I started with stubgen, then cleaned up to address missing functions. Testing plan 
is to keep an eye on CI and fix any issues that arise.
2021-07-13 15:11:27 +01:00
Vanessa Ung
80f61d2209 Stubs for oauthlib (#5766)
This was generated with stubgen, with a touch of manual intervention to clean up and 
have it pass tests.
2021-07-13 09:54:50 +01:00
Shiva Raisinghani
ce94e8bba6 Add stubs for slumber (#5764) 2021-07-12 21:03:08 +02:00
Sebastian Rittau
3bb397055c Improve distutils and lib2to3 (#5763)
Add missing elements to distutils.util:

* run_2to3()
* copydir_run_2to3()
* Mixin2to3

Use PEP 604 and PEP 585.

Add lib2to3.refactor.
2021-07-12 20:15:54 +02:00
Jelle Zijlstra
7f320c6b9e Stubs for beautifulsoup4 (#5758)
Stubgen and manual fixes, don't bother with Python 2
2021-07-11 17:02:51 +03:00
Akuli
e676fcabd3 Create pygments stubs (#5759)
* run stubgen

* replace individual lexers with __getattr__ in lexers/__init__.pyi

* replace individual styles with __getattr__ in styles/__init__.pyi

* import-export each formatter into formatters/__init__.pyi

* clean up slightly with quick and dirty script

* manual fixing
2021-07-11 16:27:35 +03:00
Sebastian Rittau
a7446632f7 Add third-party vobject stubs (#5733) 2021-07-08 18:26:24 -07:00
Sebastian Rittau
1cffceb767 Add httplib2 third-party stubs (#5713) 2021-06-30 07:54:02 -07:00
Sebastian Rittau
2b35ea5f91 Add caldav third-party stubs (#5684)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2021-06-30 16:28:40 +02:00
Sebastian Rittau
40b127d46a Add third-party commonmark stubs (#5702) 2021-06-30 07:19:43 -07:00
Sebastian Rittau
f260ea2383 Add html5lib third-party stubs (#5701) 2021-06-29 21:15:59 -07:00
Sebastian Rittau
bc2ec748f6 Move routes stubs to @python2 directory (#5637)
* Move routes stubs to @python2 directory

* Ignore Python-2-only stubs for stubtest

* Use standard idiom for re-exporting items

Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-06-18 17:05:23 +03:00
Sebastian Rittau
4c3e3a68a6 Update bleach stubs (#5631) 2021-06-14 06:50:51 -07:00
Jake Bailey
c4dc935b3f Add a stricter config pass for pyright (#5612) 2021-06-10 20:10:12 +02:00