Commit Graph

21 Commits

Author SHA1 Message Date
sobolevn
6f248dfa37 Bump mypy to 1.11.1 (#12463) 2024-08-04 23:19:28 -07:00
David Salvisberg
9b260a59cc oauthlib: Fix annotations for oauthlib.oauth2.RequestValidator (#11417) 2024-02-16 05:46:32 -08:00
Andrew
62292cdd93 [oauthlib] Fix return types of Client methods (#9908) 2024-01-23 12:30:54 +01:00
George Fourtounis
3f57017aaf Add support for the refresh_token grant type (RefreshTokenGrant) (#11… (#11206)
Add support for the refresh_token grant type (RefreshTokenGrant).
2024-01-04 12:24:57 +01:00
Mark Hetherington
1053e923cd oauthlib: Update types for RequestValidator to match implementation (#10725) 2023-09-18 11:07:44 +02:00
Sebastian Rittau
afe18e95a9 Add an upstream_repository field to METADATA.toml (#10487)
Closes: #10478
2023-07-20 16:45:41 +02:00
Avasam
db0149859c Add partial_stub metadata field (#10157) 2023-05-10 17:04:18 +02:00
Alex Waygood
bb7c376142 Add defaults for third-party stubs M-O (#9956) 2023-03-27 19:20:30 +02:00
Malthe Jørgensen
9d6ae8a222 [oauthlib] Add types in oauth1/rfc5849/request_validator.pyi (#9844)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-03-11 13:48:07 +00:00
Alex Waygood
6ba28ae547 Remove unused type: ignore comments (#9801) 2023-02-23 12:59:50 -08:00
Avasam
ed6748fb32 Stubtest settings: change ignore_missing_stub default to false (#9779)
If you're reading about this commit from an autogenerated changelog entry, this should have no user-visible impact on how the stubs are interpreted by a type checker; it's just an internal change to how typeshed's tests work.
2023-02-20 22:37:45 +00:00
Alex Waygood
a4e3cfefac Improve pre-commit config (#9563)
- Add a few more hooks. These are all very fast, and I've found them useful in other projects:
  - Autofixes:
    - `trailing-whitespace`: fixes trailing whitespace
    - `requirements-txt-fixer`: alphabetises items in `requirements.txt` files
    - `end-of-file-fixer`: makes sure every file ends with a single newline character
    - `mixed-line-ending`: Makes sure Windows users don't accidentally introduce CRLF line endings into a file that uses LF line endings
  - None-autofixes:
    - `check-yaml`: loads YAML files to validate syntax
    - `check-toml`: loads TOML files to validate syntax
    - `check-merge-conflict`: detects merge-conflict strings in files and blocks them from accidentally being committed
    - `check-case-conflict`: checks for files with names that would conflict on a case-insensitive filesystem like MacOS HFS+ or Windows FAT; blocks them from being committed.
  - Change the bot schedule to quarterly, to reduce noisy PRs
  - Change the `black` language target-version to Python 3.10, synching the setting here with the changes that were made to our `pyproject.toml` file in #7538
2023-01-18 06:29:18 -08:00
Alex Waygood
4fea314594 Replace Any with Incomplete in many places (#9558) 2023-01-18 08:48:16 +00:00
Nikita Sobolev
18e2ae762b Mark first argument of __[get|set|del]attr__ as str (#9245) 2022-11-22 11:06:50 +00:00
Shantanu
42409735b2 Bump oauthlib to 3.2.* (#8081) 2022-06-18 16:27:10 +02:00
Alex Waygood
8d5d2520ac Use PEP 585 syntax wherever possible (#6717) 2021-12-28 11:31:43 +01:00
Akuli
0cd1135219 Revert "do not use mypy-specific syntax in '# type: ignore' comments" (#6338) 2021-11-18 20:13:07 +02:00
Sebastian Rittau
9f86972350 Add star to all non-0.1 versions (#6146) 2021-10-11 13:41:19 -07:00
Akuli
8d5452e873 do not use mypy-specific syntax in '# type: ignore' comments (#5953) 2021-08-29 03:58:34 -07:00
Akuli
ee487304d7 Big diff: Use new "|" union syntax (#5872) 2021-08-08 11:05:21 +02: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