Sebastian Rittau
3171cb44aa
Bump fpdf2 to 2.7.7 ( #11149 )
...
Closes : #11145
2023-12-12 16:31:37 -08:00
Alex Waygood
1d2fe59e88
Third-party stubs: remove unused type: ignores ( #11063 )
2023-11-23 13:35:45 +00:00
Matthias Schoettle
dc4594a6e7
[fpdf2] add compatibility with fpdf2 2.7.6 ( #10932 )
2023-11-15 15:11:59 +01:00
Alex Waygood
516f665505
Bump flake8-pyi to 23.11.0 ( #10997 )
2023-11-08 16:01:24 +00:00
Alex Waygood
a08d4c8d2e
Remove many redundant inheritances from Generic[] ( #10933 )
2023-10-26 20:07:20 +02:00
Sebastian Rittau
afe18e95a9
Add an upstream_repository field to METADATA.toml ( #10487 )
...
Closes : #10478
2023-07-20 16:45:41 +02:00
Sebastian Rittau
ff700e1b95
Fix return type of FPDF.output() ( #10166 )
2023-05-10 07:05:48 -07:00
Sebastian Rittau
f1c419e816
[fpdf2] Update stubs for fpdf 2.7.4 ( #10136 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-05-03 16:52:43 +01:00
Sebastian Rittau
ec1130adcc
[fpdf2] Update to 2.7.1 ( #9978 )
2023-05-03 17:06:12 +02:00
Alex Waygood
1cd3ae8e30
Add defaults for third-party stubs E-H ( #9954 )
2023-03-27 17:09:01 +01:00
Avasam
078c6a0958
Update Unused parameters in stubs/ ( #9704 )
...
* Update _Unused TypeAlias
* Update `object | None` params
* Replace unused `object` parameters with `Unused` alias
2023-02-21 23:52:52 -08:00
Avasam
5ac80781ec
Integrate requirements-stubtest.txt into METADATA.toml ( #9778 )
2023-02-21 11:19:50 +01: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
7180d0223b
Use typing_extensions.Self instead of _typeshed.Self ( #9702 )
2023-02-15 11:32:43 +01:00
Sebastian Rittau
ad1e2bede1
[fpdf2] FPDF.add_font() accepts PurePaths ( #9699 )
2023-02-09 05:57:45 -08:00
Avasam
10086c06a1
Fix Any subclassing in fpdf2 ( #9536 )
2023-02-09 09:39:40 +01:00
Alex Waygood
efee70abfa
Bump mypy to 1.0 ( #9684 )
2023-02-06 15:57:17 -08:00
Sebastian Rittau
eb4d17031f
[fpdf2] Restore string default values ( #9562 )
...
Cf. #9546
2023-01-18 11:29:32 +00:00
Alex Waygood
4fea314594
Replace Any with Incomplete in many places ( #9558 )
2023-01-18 08:48:16 +00:00
Sebastian Rittau
7b848b4ede
Update fpdf2 stubs to 2.6.1 ( #9546 )
2023-01-17 13:25:41 +01:00
Alex Waygood
0a291da2f0
Pin fpdf2 stubs to 2.6.0 ( #9535 )
...
They will need some updates to become compatible with `fpdf2` 2.6.1.
Closes #9524
2023-01-14 18:39:04 +00:00
AMBER MURTUZA ANSARI
135bbd34a5
fpdf:annotation of dash_pattern, line_width, text_mode ( #9387 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-12-25 16:24:06 +00:00
AMBER MURTUZA ANSARI
956873d0ce
Fpdf2: annotate more graphics_state properties ( #9337 )
2022-12-13 18:12:09 +00:00
AMBER MURTUZA ANSARI
503eab31d7
fpdf:annotation of underline, font_style, font_streching ( #9327 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-12-05 15:02:15 +00:00
AMBER MURTUZA ANSARI
ba0e073430
fpdf2: annotate draw_color, fill_color, text_color ( #9282 )
2022-12-01 20:46:36 +00:00
Sebastian Rittau
a46283c1cc
Update fpdf2 stubs to 2.6 ( #9236 )
2022-11-22 20:44:53 -08:00
Nikita Sobolev
18e2ae762b
Mark first argument of __[get|set|del]attr__ as str ( #9245 )
2022-11-22 11:06:50 +00:00
Darshan
1cfb5bb5a1
Add return types to fpdf.drawing ( #8891 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-14 21:08:07 +03:00
Alex Waygood
5d45e3babc
fpdf2: complete stubs (#8855 )
2022-10-06 11:36:26 +02:00
Alex Waygood
f801229f37
fpdf2: Add missing files (#8836 )
2022-10-03 17:05:37 -07:00
Alex Waygood
c4483a7b01
Update fdpf2 stubs for v2.5.7 ( #8721 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2022-09-11 15:27:19 +01:00
Alex Waygood
8b222200e0
fpdf2: Remove redundant str | Literal['DEPRECATED'] union (#8650 )
2022-08-30 19:54:52 +01:00
Shantanu
133d5f375c
fpdf2: fix for 2.5.6 changes ( #8546 )
...
Life is much easier when upstream has some annotations
Fixes #8545
2022-08-16 21:32:39 -07:00
Sebastian Rittau
f135c6515d
Fix size parameter of FPDF.set_font_size ( #8234 )
2022-07-04 12:23:31 +01:00
Shantanu
b4587c64c6
Bump fpdf2 to 2.5.* ( #8173 )
...
Co-authored-by: hauntsaninja <>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-06-29 16:54:36 +01:00
Shantanu
cdcf264d07
fpdf2: improve types ( #8176 )
...
Co-authored-by: hauntsaninja <>
2022-06-26 20:53:29 +05:30
Alex Waygood
740193a8fc
Use TypeAlias where possible for type aliases ( #7630 )
2022-04-15 18:01:00 -07:00
Sebastian Rittau
97a327b984
fpdf2: Correct annotations of @contextmanager methods ( #7172 )
2022-02-10 18:15:09 +01:00
Alex Waygood
8d5d2520ac
Use PEP 585 syntax wherever possible ( #6717 )
2021-12-28 11:31:43 +01:00
Sebastian Rittau
9bf2ceb963
Fix third-party issues found by stubtest ( #6667 )
2021-12-22 15:09:44 -08:00
Sebastian Rittau
0cecceed90
Add some missing attributes and types to FPDF ( #6618 )
2021-12-21 07:54:04 -08:00
Akuli
a5bc1e037f
Add mypy error codes to '# type: ignore' comments ( #6379 )
2021-11-26 07:07:56 +01:00
Sebastian Rittau
1b0e268102
Improve fpdf.image_parsing ( #6313 )
...
* Annotate more attributes, arguments, and return types.
* Add "dims" argument to get_img_info(), added in 2.4.6.
2021-11-16 17:35:08 +01:00
Sebastian Rittau
f2551376ae
Add stubs for fpdf2 ( #6252 )
2021-11-10 19:06:26 +02:00