File tree 3 files changed +27
-6
lines changed 3 files changed +27
-6
lines changed Original file line number Diff line number Diff line change @@ -350,7 +350,6 @@ def configure_logging(level: Optional[int] = None):
350
350
'Camera' ,
351
351
'SimpleCamera' ,
352
352
'Color' ,
353
- 'DEFAULT_FONT_NAMES' ,
354
353
'EasingData' ,
355
354
'EmitBurst' ,
356
355
'EmitController' ,
@@ -521,6 +520,7 @@ def configure_logging(level: Optional[int] = None):
521
520
'isometric_grid_to_screen' ,
522
521
'lerp' ,
523
522
'lerp_vec' ,
523
+ 'lerp_angle' ,
524
524
'load_animated_gif' ,
525
525
'load_font' ,
526
526
'load_sound' ,
Original file line number Diff line number Diff line change @@ -214,21 +214,20 @@ def __init__(
214
214
normalized : Optional [Iterable [str ]] = None ,
215
215
instanced : bool = False ,
216
216
):
217
-
218
217
#: The :py:class:`~arcade.gl.Buffer` this description object describes
219
218
self .buffer = buffer # type: Buffer
220
219
#: List of string attributes
221
220
self .attributes = attributes
222
221
#: List of normalized attributes
223
222
self .normalized = set () if normalized is None else set (normalized )
224
223
#: Instanced flag (bool)
225
- self .instanced = instanced # type: bool
224
+ self .instanced : bool = instanced
226
225
#: Formats of each attribute
227
- self .formats = [] # type: List[AttribFormat ]
226
+ self .formats : List [ AttribFormat ] = [ ]
228
227
#: The byte stride of the buffer
229
- self .stride = - 1 # type: int
228
+ self .stride : int = - 1
230
229
#: Number of vertices in the buffer
231
- self .num_vertices = - 1 # type: int
230
+ self .num_vertices : int = - 1
232
231
233
232
if not isinstance (buffer , Buffer ):
234
233
raise ValueError ("buffer parameter must be an arcade.gl.Buffer" )
Original file line number Diff line number Diff line change
1
+ from types import ModuleType
2
+ from copy import copy
1
3
import logging
2
4
import arcade
5
+ from arcade import *
6
+
7
+
8
+ def test_import ():
9
+ """Compare arcade.__all__ to the actual module contents"""
10
+ import arcade
11
+ global_names = set (k for k in globals () if not k .startswith ('_' ))
12
+ arcade_names = set (k for k in arcade .__dict__ if not k .startswith ('_' ))
13
+
14
+ # Get the common members
15
+ common = global_names .intersection (arcade_names )
16
+ remaining = arcade_names - common
17
+ for name in copy (remaining ):
18
+ attr = getattr (arcade , name )
19
+ if type (attr ) is ModuleType :
20
+ remaining .remove (name )
21
+ elif not attr .__module__ .startswith ('arcade.' ):
22
+ remaining .remove (name )
23
+
24
+ assert len (remaining ) == 0
3
25
4
26
5
27
def test_logging ():
You can’t perform that action at this time.
0 commit comments