Commit Graph

9231 Commits

Author SHA1 Message Date
Shantanu d9cf43c4c3 Mark pos-only __class_getitem__ args (#11970) 2024-05-18 23:27:51 +02:00
Shantanu 69dc8e291a token, tokenize: update for py313 (#11966) 2024-05-18 14:21:29 -07:00
Shantanu ac38fce019 threading: add new lock methods (#11964) 2024-05-18 16:55:42 -04:00
Shantanu df735cb606 atexit: fix pos-only args (#11969) 2024-05-18 13:32:53 -07:00
Shantanu c11b16882c math: add fma in py313 (#11968) 2024-05-18 16:30:41 -04:00
Shantanu 7f2a1a742d keyword: fix pos-only args (#11967) 2024-05-18 16:27:54 -04:00
Shantanu bb28ef882f code: update for py313 (#11962) 2024-05-18 16:22:22 -04:00
Shantanu 46dc8aac1f faulthandler: fix pos-only arg in unregister (#11963) 2024-05-18 16:20:47 -04:00
Shantanu feee9dc0f4 syslog: update for py313 (#11960) 2024-05-18 16:19:30 -04:00
Shantanu 1054a209d6 socket: match pos-only arg name to runtime (#11961) 2024-05-18 12:30:48 -07:00
Shantanu 49512463c6 http: add py313 HTTPStatus aliases (#11935) 2024-05-18 19:24:44 +02:00
Shantanu 6d5dc99b96 stat: fix positional-only args (#11930) 2024-05-18 19:24:02 +02:00
Shantanu 9f35be6664 gzip: change type of undocumented constants (#11943)
These were changed to str in py313
2024-05-18 12:35:26 -04:00
Ali Hamdan bd306f6b4c Use assignment instead of annotation in third party enums (#11957) 2024-05-18 17:31:39 +02:00
bzoracler 5bd7150139 improvement: Add AST subclass constructors (#11880) 2024-05-18 09:33:07 -04:00
Avasam 1230ced066 runtests: Run pre-commit only on specified files (#11949) 2024-05-18 09:07:42 -04:00
Adam Dangoor 55b552121b Fix type of Docker BuildError.build_log (#11917)
In working this out I also had a go at changing the json_stream
functions used to create every BuildError in docker-py.

There are two `BuildError`s raised in docker-py, both in
https://github.com/docker/docker-py/blob/b6464dbed92b14b2c61d5ee49805fce041a3e083/docker/models/images.py#L304-L315

```python
result_stream, internal_stream = itertools.tee(json_stream(resp))
for chunk in internal_stream:
    if 'error' in chunk:
	raise BuildError(chunk['error'], result_stream)
    if 'stream' in chunk:
	match = re.search(
	    r'(^Successfully built |sha256:)([0-9a-f]+)$',
	    chunk['stream']
	)
	if match:
	    image_id = match.group(2)
    last_event = chunk
if image_id:
    return (self.get(image_id), result_stream)
raise BuildError(last_event or 'Unknown', result_stream)
```
2024-05-18 08:26:17 -04:00
Sebastian Rittau 916e05ae33 Unify allowlist handling (#11889)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Ali Hamdan <ali.hamdan.dev@gmail.com>
2024-05-18 08:01:43 -04:00
Ali Hamdan b570af5c1c stdlib: fix some enum definitions (#11956) 2024-05-18 13:03:10 +02:00
Sebastian Rittau 8bd6cebbb4 [fpdf2] Update to 2.7.9 (#11953) 2024-05-18 06:51:24 -04:00
Sebastian Rittau 9a7ff272cc [influxdb-client] Update to 1.43.* (#11954) 2024-05-18 06:43:35 -04:00
Ali Hamdan 4a70a78c26 optparse: add_option Option argument is positional only (#11952) 2024-05-18 06:09:09 -04:00
Shantanu 11075c6c37 inspect: change for py313 (#11938) 2024-05-18 05:55:55 -04:00
Shantanu 54b39e1de4 Add __replace__ to namedtuple and structseq (#11939)
mypy will need its own change to truly understand namedtuple
2024-05-18 05:55:09 -04:00
Shantanu abfb72e106 wsgiref: update __all__ for py313 (#11940)
GH-111770
2024-05-18 05:53:26 -04:00
Shantanu 53439861c5 opcode: update for py313 (#11944) 2024-05-18 05:49:06 -04:00
Shantanu 674722f038 signal: mark set_wakeup_fd pos only arg (#11945) 2024-05-18 05:47:59 -04:00
Avasam 003361c006 Make distutils.dist.Distribution.get_command_obj not return None by default (#11950) 2024-05-18 11:38:48 +02:00
Avasam 3e0269bc6c distutils & setuptools: Complete sub_commands ClassVar typing (#11951) 2024-05-18 11:36:49 +02:00
Shantanu 36afde99cf random: match seed type in __init__ (#11942) 2024-05-18 11:27:03 +02:00
Shantanu 459c3288da stat: add constants in py313 (#11936) 2024-05-18 00:28:36 +02:00
Shantanu 9661e149b2 venv: changes for py313 (#11937) 2024-05-18 00:06:55 +02:00
Shantanu bb267c82f8 builtins: eval and exec can take globals and locals via keyword (#11934) 2024-05-17 23:55:16 +02:00
Shantanu 4c6f295007 urllib.request: remove params from urlopen for py313 (#11933) 2024-05-17 23:54:05 +02:00
Shantanu 40349344ee lib2to3: remove in py313 (#11931) 2024-05-17 23:52:27 +02:00
Ryan Morshead e7daedd6ab add networkx.topological_generations (#11927) 2024-05-17 08:52:26 +02:00
Avasam c99adf4b85 distutils: improve boolean parameters with int defaults (#11928) 2024-05-17 08:33:18 +02:00
Alex Waygood 240114ac1a More PEP-696 updates to typing(_extensions) stubs (#11925) 2024-05-16 22:05:45 -04:00
Alex Waygood 5b0816e784 Fix stdlib stubtest after latest typing-extensions release (#11923) 2024-05-16 16:53:19 -04:00
Alex Waygood 77d6947479 Use stricter pyright settings in CI for assertpy (#11920) 2024-05-15 21:21:47 -04:00
renovate[bot] 5fc866f9fd Update dependency pyright to v1.1.363 (#11919)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
2024-05-15 21:11:21 -04:00
github-actions[bot] 1c2d0230fa [stubsabot] Bump regex to 2024.5.15 (#11918)
Co-authored-by: stubsabot <>
2024-05-15 20:34:37 -04:00
Raphael Castro 5079dc1d9e Add stubs for assertpy (#11916) 2024-05-15 14:56:43 -04:00
David Salvisberg d3faa5a8b0 uWSGI: Makes stubtest_allowlist_darwin more resilient against CI flakyness (#11819) 2024-05-15 12:07:55 -04:00
github-actions[bot] a86115a19d [stubsabot] Bump ujson to 5.10.* (#11915)
Release: https://pypi.org/pypi/ujson/5.10.0
Homepage: https://github.com/ultrajson/ultrajson
Repository: https://github.com/ultrajson/ultrajson
Typeshed stubs: https://github.com/python/typeshed/tree/main/stubs/ujson
Diff: https://github.com/ultrajson/ultrajson/compare/5.9.0...5.10.0

Stubsabot analysis of the diff between the two releases:
 - Total lines of Python code added: 0.
 - Total lines of Python code deleted: 0.
2024-05-14 21:11:30 -04:00
Adam Dangoor a9d7e861f7 Add a number of types to docker.models.containers (#11912) 2024-05-14 11:15:32 +02:00
Kanishk Pachauri b859441e74 [pyflakes] add backwards compatibility module (#11910) 2024-05-14 07:50:51 +02:00
Max Muoto 3195f9fb1b Use TypeVar defaults for Generator and AsyncGenerator (#11867) 2024-05-13 15:21:43 -07:00
kasium 708656f5ad Complete types for hvac.v1.Client (#11886) 2024-05-13 05:31:48 -07:00
Adam Dangoor 0382803c4c Add many types to docker.api.container (#11911) 2024-05-12 13:58:56 -07:00