Skip to content

Conversation

@pushfoo
Copy link
Member

@pushfoo pushfoo commented Aug 13, 2023

The errors reported for this PR are fixed by #1854

Changes

  1. Raise a TypeError instead of a ValueError when Window.show_view is passed something other than a view
  2. Include the passed object's string representation in the TypeError's string
  3. Test the exception type in Window's unit tests

How to test

Run unit tests as usual.

@pushfoo pushfoo mentioned this pull request Aug 13, 2023
@pushfoo pushfoo force-pushed the fix_show_view_type branch from 8172aa5 to 363c6ef Compare August 14, 2023 19:06
@pvcraven pvcraven merged commit 0983283 into pythonarcade:development Aug 15, 2023
Snipy7374 pushed a commit to Snipy7374/arcade that referenced this pull request Sep 8, 2023
* Fixed PyRight issues.

The latest version of PyRight is a little over zealous.. There where two flagged non-issues. One where it didn't realise that the code would escape early, and another which is all pyglets fault.

* initial commit for doc_stack/fix_readthedocs

* Tell readthedocs to install `dev` dependencies, same as CI.  Keeps things consistent

* Update index.rst

Dropdowm -> Dropdown 2 times

* upgrade sphinx

* Fix rendering issue in CONTRIBUTING.rst

* Revert erroneous dep upgrade from pythonarcade#1826

* Lock pyright version

To avoid CI breakages due to pyright releasing a new version, not caused by any of our code

* oof python versions

* add pending comment

* Make `_move_sprite()` generic

* Fix exception type when Window.show_view is passed a non-View (pythonarcade#1876)

* Fix exception type when Window.show_view is passed a non-View

* Include instance info in Window.show_view TypeError

* Add check for TypeError from show_view in Window tests

* Revert inclusion of full printout in show_view TypeError

* Update build procedure (pythonarcade#1884)

* Make annotations singular

* Move filter & blend aliases to arcade.gl.types

* Use PyGLenum per @cspotcode's suggestion

* Remove use of literals

* Move to arcade.gl.types

* Import TypeAlias from typing_extensions since it's from 3.10

* Remove | assignment incompatible with 3.8

* Allow using either int or Tuple[int, int] for filter in SpriteList.draw

* Add casts to make pyright happy

---------

Co-authored-by: DragonMoffon <happydog.aja@gmail.com>
Co-authored-by: cspotcode <cspotcode@gmail.com>
Co-authored-by: Dominik <dominik.reinartz@hotmail.com>
Co-authored-by: DragonMoffon <86714785+DragonMoffon@users.noreply.github.com>
Co-authored-by: Paul V Craven <paul@cravenfamily.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants