belono
dfd48e229d
Move platform dependent printers' guard to init
2023-10-14 01:35:37 +02:00
belono
8f54dfed00
Deprecate pywin32-stubs, too
2023-10-14 00:44:50 +02:00
belono
72a1a10faa
Deprecate types-pywin32 in favor of pywin32-stubs
2023-10-12 16:55:23 +02:00
Benito López
fe1b677f35
Merge branch 'master' into belono/issue445
2023-10-09 19:10:02 +02:00
belono
0aa7c5112b
Regression
2023-10-09 12:20:58 +02:00
belono
41eaa52397
Move _device type annotations to __init__()
2023-10-09 12:09:50 +02:00
belono
da0cd8f863
More win32raw fixes
2023-10-09 11:58:13 +02:00
belono
99777526a3
Fix win32raw
2023-10-09 10:20:50 +02:00
Patrick Kanzler
3a8af8a6f5
switch to python 3.12 ( #582 )
...
* switch to python 3.12
* 3.11 on RTD
* fix SyntaxWarning (regex strings were invalid partially)
2023-10-09 00:13:39 +02:00
Patrick Kanzler
e4f4844983
add action for windows build ( #581 )
...
* copy action for windows
* exclude cups on windows
* update changelog
2023-10-08 23:27:37 +02:00
belono
3f775fbaa8
Fix type checking - per device type annotations
2023-10-08 21:16:23 +02:00
belono
67c0ab03ba
More LP fixes
2023-10-06 21:13:05 +02:00
Benito López
7ce2fb52b2
Merge branch 'master' into belono/issue445
2023-10-05 20:41:37 +02:00
Patrick Kanzler
a70e1604d6
Magic encoder: fix codepage usage ( #580 )
...
* add unit test for issue pointed out by @scott-r in #570
* swap order of encoder search
As described by @scott-r in
Magic encoder does not use
previously used code pages
when possible #570
Thank you!
2023-10-05 14:55:12 +02:00
Patrick Kanzler
5018f7f377
add checkpoint to release checklist for changelog ( #578 )
2023-10-05 14:22:21 +02:00
Patrick Kanzler
ecfeeb9b13
Improve diagnostic output ( #577 )
...
* add extended version information
* autodocument argparser
* add spelling exception
* fix docstrings
* add annotations
* use typing types
* add test
2023-10-05 14:15:19 +02:00
dependabot[bot]
ba0167f1fd
Bump pillow from 9.5.0 to 10.0.1 in /examples/docker-flask ( #576 )
...
Bumps [pillow](https://github.com/python-pillow/Pillow ) from 9.5.0 to 10.0.1.
- [Release notes](https://github.com/python-pillow/Pillow/releases )
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst )
- [Commits](https://github.com/python-pillow/Pillow/compare/9.5.0...10.0.1 )
---
updated-dependencies:
- dependency-name: pillow
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-04 08:44:44 +02:00
dependabot[bot]
87e488ce11
Bump actions/setup-python from 4.7.0 to 4.7.1 ( #575 )
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 4.7.0 to 4.7.1.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v4.7.0...v4.7.1 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-03 20:10:41 +02:00
Benito López
94eea12264
Update src/escpos/printer/win32raw.py
...
Add return type
Co-authored-by: Patrick Kanzler <4189642+patkan@users.noreply.github.com>
2023-09-25 18:47:00 +02:00
Benito López
0d82a00103
Update src/escpos/printer/usb.py
...
Add return type
Co-authored-by: Patrick Kanzler <4189642+patkan@users.noreply.github.com>
2023-09-25 18:46:37 +02:00
Benito López
fd5e4601d8
Update src/escpos/printer/serial.py
...
Add return type
Co-authored-by: Patrick Kanzler <4189642+patkan@users.noreply.github.com>
2023-09-25 18:46:16 +02:00
Benito López
0e41b8414e
Update src/escpos/printer/network.py
...
Add return type
Co-authored-by: Patrick Kanzler <4189642+patkan@users.noreply.github.com>
2023-09-25 18:45:55 +02:00
Benito López
59579c477d
Update src/escpos/printer/lp.py
...
Add return type
Co-authored-by: Patrick Kanzler <4189642+patkan@users.noreply.github.com>
2023-09-25 18:45:33 +02:00
Benito López
5062a09b0a
Update src/escpos/printer/lp.py
...
Add return type
Co-authored-by: Patrick Kanzler <4189642+patkan@users.noreply.github.com>
2023-09-25 18:45:11 +02:00
Benito López
cc22cf0ad2
Update src/escpos/printer/file.py
...
Add return type
Co-authored-by: Patrick Kanzler <4189642+patkan@users.noreply.github.com>
2023-09-25 18:44:37 +02:00
Benito López
848cc3417f
Update src/escpos/printer/file.py
...
Add return type
Co-authored-by: Patrick Kanzler <4189642+patkan@users.noreply.github.com>
2023-09-25 18:44:03 +02:00
belono
86ae775881
Fix LP waste of paper due to auto-flush + flush on close
2023-09-24 13:37:45 +02:00
belono
0984c93975
Fix type checking
2023-09-22 19:58:26 +02:00
belono
f8deb69f43
Fix LP printer stall
2023-09-21 20:35:32 +02:00
Benito López
a8e1c583e0
Merge branch 'master' into belono/issue445
2023-09-19 10:12:56 +02:00
Patrick Kanzler
6d0c475b9a
refactor set method ( #547 )
...
* add type annotations
* Update setup.cfg
* improve mypy and test config
* get_profile_class returns a baseProfile
* mute mypy type issue
* add set_with_default
* docstring
* add test for empty call
* correct type annotations in set_with_default
* improve tests
* test for exception
* sort with isort
* add default value to get call
* empty string has the same effect: will not be found --> None
* add mypy test to workflow
* explicitely call mypy
* update spelling
2023-09-19 07:51:39 +02:00
belono
d3946212c7
Fix some docstrings
2023-09-18 15:26:08 +02:00
Benito López
c4eb21e83d
Merge branch 'master' into belono/issue445
2023-09-18 13:00:45 +02:00
Patrick Kanzler
adcde8abda
Install types-pywin32 for mypy ( #568 )
2023-09-17 23:39:16 +02:00
Patrick Kanzler
89aaae0186
get mypy configuration change from #547 ( #567 )
2023-09-17 23:24:16 +02:00
Patrick Kanzler
9336b2c0e8
Merge branch 'master' into belono/issue445
2023-09-17 23:07:57 +02:00
Patrick Kanzler
f3ee049ee1
Update spelling_wordlist.txt ( #566 )
...
* Update spelling_wordlist.txt
* update apt
2023-09-17 23:00:38 +02:00
belono
2bd11b38d5
Enhance connectors consistency
2023-09-16 19:55:31 +02:00
belono
30a34460e8
Update USBNotFoundError return code
2023-09-09 18:11:40 +02:00
belono
f846347624
Add generic DeviceNotFounfError exception
2023-09-09 18:04:15 +02:00
Benito López
dcde8c072d
Merge branch 'master' into belono/issue445
2023-09-09 16:38:43 +02:00
Patrick Kanzler
cfa9ecf16d
Enable spell checking ( #563 )
...
* add spellchecking
* improve spelling
* improve spelling config
* extend word list
* improve spelling
* improve spelling
* escalate warning in spell check to failure
* fix spelling
* fix spelling
* add plural
* Update doc/spelling_wordlist.txt
* do not stop on warning
* require newest sphinxcontrib spelling
* remove old comment
* add authors as single line entry to spelling list
* reenable stop on warning
2023-09-07 22:08:31 +02:00
Benito López
58be698b16
Update src/escpos/escpos.py
...
Remove 'Literal[False]' as a return value type of the property 'device'
Co-authored-by: Patrick Kanzler <4189642+patkan@users.noreply.github.com>
2023-09-07 12:57:18 +02:00
Patrick Kanzler
8f07c1da0f
isort imports on save ( #564 )
2023-09-06 23:42:01 +02:00
belono
77f97a906a
Fix sort imports
2023-09-06 23:24:01 +02:00
belono
a825f8f06d
Please mypy type checking
2023-09-06 23:13:58 +02:00
belono
e8814e4acb
Fix mypy complains
2023-09-06 23:13:58 +02:00
belono
e434164202
Add type annotation to device.setter
2023-09-06 23:13:57 +02:00
belono
a7e7bc0a64
Add default value to all params + type annotations
2023-09-06 23:13:57 +02:00
Benito López
fa583e68d5
Merge branch 'master' into belono/issue445
2023-09-06 23:06:38 +02:00