Syncing latest changes between public/private.

This commit is contained in:
Eric Froemling 2020-08-03 11:24:38 -07:00
parent 2552dd0767
commit e6143fc33c
13 changed files with 38 additions and 23 deletions

View File

@ -30,6 +30,7 @@
<w>achs</w> <w>achs</w>
<w>acinstance</w> <w>acinstance</w>
<w>ack</w> <w>ack</w>
<w>ack'ed</w>
<w>acked</w> <w>acked</w>
<w>acks</w> <w>acks</w>
<w>acnt</w> <w>acnt</w>
@ -149,6 +150,7 @@
<w>badguy</w> <w>badguy</w>
<w>bafoundation</w> <w>bafoundation</w>
<w>ballistica</w> <w>ballistica</w>
<w>ballistica's</w>
<w>ballisticacore</w> <w>ballisticacore</w>
<w>ballisticacorecb</w> <w>ballisticacorecb</w>
<w>bamaster</w> <w>bamaster</w>
@ -204,6 +206,7 @@
<w>bools</w> <w>bools</w>
<w>bootlocale</w> <w>bootlocale</w>
<w>borhani</w> <w>borhani</w>
<w>bot's</w>
<w>botdist</w> <w>botdist</w>
<w>botlist</w> <w>botlist</w>
<w>botpos</w> <w>botpos</w>
@ -607,6 +610,7 @@
<w>etsel</w> <w>etsel</w>
<w>etxt</w> <w>etxt</w>
<w>etype</w> <w>etype</w>
<w>eval'ed</w>
<w>evalpydata</w> <w>evalpydata</w>
<w>evel</w> <w>evel</w>
<w>eventid</w> <w>eventid</w>
@ -631,6 +635,10 @@
<w>extrahash</w> <w>extrahash</w>
<w>extrascale</w> <w>extrascale</w>
<w>exts</w> <w>exts</w>
<w>f'baseval</w>
<w>f'chmod</w>
<w>f'final</w>
<w>f'fixme</w>
<w>factoryclass</w> <w>factoryclass</w>
<w>fakemodule</w> <w>fakemodule</w>
<w>fallbacks</w> <w>fallbacks</w>
@ -772,6 +780,7 @@
<w>gameinstance</w> <w>gameinstance</w>
<w>gamemap</w> <w>gamemap</w>
<w>gamepad</w> <w>gamepad</w>
<w>gamepad's</w>
<w>gamepadadvanced</w> <w>gamepadadvanced</w>
<w>gamepads</w> <w>gamepads</w>
<w>gamepadselect</w> <w>gamepadselect</w>
@ -1141,6 +1150,7 @@
<w>lssl</w> <w>lssl</w>
<w>lstart</w> <w>lstart</w>
<w>lstr</w> <w>lstr</w>
<w>lstr's</w>
<w>lstrs</w> <w>lstrs</w>
<w>lsval</w> <w>lsval</w>
<w>ltex</w> <w>ltex</w>
@ -1337,6 +1347,7 @@
<w>nvcompress</w> <w>nvcompress</w>
<w>nvidia</w> <w>nvidia</w>
<w>nyko</w> <w>nyko</w>
<w>obj's</w>
<w>objname</w> <w>objname</w>
<w>objs</w> <w>objs</w>
<w>objt</w> <w>objt</w>
@ -1578,6 +1589,7 @@
<w>pybee</w> <w>pybee</w>
<w>pybuild</w> <w>pybuild</w>
<w>pycache</w> <w>pycache</w>
<w>pycharm's</w>
<w>pycharmbin</w> <w>pycharmbin</w>
<w>pycharmfull</w> <w>pycharmfull</w>
<w>pycharmroot</w> <w>pycharmroot</w>
@ -1760,6 +1772,7 @@
<w>sessionplayer</w> <w>sessionplayer</w>
<w>sessionplayers</w> <w>sessionplayers</w>
<w>sessionteam</w> <w>sessionteam</w>
<w>sessionteam's</w>
<w>sessionteams</w> <w>sessionteams</w>
<w>sessiontype</w> <w>sessiontype</w>
<w>setactivity</w> <w>setactivity</w>
@ -1906,6 +1919,7 @@
<w>subpath</w> <w>subpath</w>
<w>subplatform</w> <w>subplatform</w>
<w>subplatforms</w> <w>subplatforms</w>
<w>subprocess's</w>
<w>subprocesses</w> <w>subprocesses</w>
<w>subrepos</w> <w>subrepos</w>
<w>subsel</w> <w>subsel</w>
@ -2016,6 +2030,7 @@
<w>thelaststand</w> <w>thelaststand</w>
<w>themself</w> <w>themself</w>
<w>thingie</w> <w>thingie</w>
<w>this'll</w>
<w>threadtype</w> <w>threadtype</w>
<w>throwiness</w> <w>throwiness</w>
<w>timedisplay</w> <w>timedisplay</w>
@ -2084,6 +2099,7 @@
<w>typeargs</w> <w>typeargs</w>
<w>typecheck</w> <w>typecheck</w>
<w>typechecker</w> <w>typechecker</w>
<w>typechecker's</w>
<w>typedval</w> <w>typedval</w>
<w>typeshed</w> <w>typeshed</w>
<w>typestr</w> <w>typestr</w>

View File

@ -3,6 +3,7 @@
- Windows debug builds now use Python debug libraries. This should hopefully catch more errors that would otherwise go undetected and potentially cause crashes. - Windows debug builds now use Python debug libraries. This should hopefully catch more errors that would otherwise go undetected and potentially cause crashes.
- Switched windows builds to use 'fast' mode math instead of 'strict'. This should make the game run more efficiently (similar modes are already in use on other platforms) but holler if any odd breakage happens such as things falling through floors (more often than the occasional random fluke-y case that happens now). - Switched windows builds to use 'fast' mode math instead of 'strict'. This should make the game run more efficiently (similar modes are already in use on other platforms) but holler if any odd breakage happens such as things falling through floors (more often than the occasional random fluke-y case that happens now).
- Added _ba.can_display_full_unicode() for any code that wants to avoid printing things that won't show up locally. - Added _ba.can_display_full_unicode() for any code that wants to avoid printing things that won't show up locally.
- Now pulling some classes such as Literal and Protocol from typing instead of typing_extensions (they were officially added to Python in 3.8)
### 1.5.23 (20146) ### 1.5.23 (20146)
- Fixed the shebang line in `bombsquad_server` file by using `-S` flag for `/usr/bin/env`. - Fixed the shebang line in `bombsquad_server` file by using `-S` flag for `/usr/bin/env`.

View File

@ -54,8 +54,7 @@ from ba._enums import TimeFormat, TimeType
if TYPE_CHECKING: if TYPE_CHECKING:
from typing import (Any, Dict, Callable, Tuple, List, Optional, Union, from typing import (Any, Dict, Callable, Tuple, List, Optional, Union,
List, Type) List, Type, Literal)
from typing_extensions import Literal
from ba._app import App from ba._app import App
import ba import ba

View File

@ -30,9 +30,7 @@ from ba._error import print_exception, ActivityNotFoundError
import _ba import _ba
if TYPE_CHECKING: if TYPE_CHECKING:
from typing import Any, Optional from typing import Any, Optional, Literal
from typing_extensions import Literal
import ba import ba
T = TypeVar('T', bound='Actor') T = TypeVar('T', bound='Actor')

View File

@ -26,8 +26,7 @@ import types
import weakref import weakref
import random import random
import inspect import inspect
from typing import TYPE_CHECKING, TypeVar from typing import TYPE_CHECKING, TypeVar, Protocol
from typing_extensions import Protocol
from efro.terminal import Clr from efro.terminal import Clr
from ba._error import print_error, print_exception from ba._error import print_error, print_exception

View File

@ -26,8 +26,7 @@ from typing import TYPE_CHECKING, overload
import ba import ba
if TYPE_CHECKING: if TYPE_CHECKING:
from typing import Optional, Union, Any from typing import Optional, Union, Any, Literal
from typing_extensions import Literal
class OnScreenTimer(ba.Actor): class OnScreenTimer(ba.Actor):

View File

@ -28,8 +28,7 @@ import ba
from bastd.actor.spaz import Spaz from bastd.actor.spaz import Spaz
if TYPE_CHECKING: if TYPE_CHECKING:
from typing import Any, Sequence, Tuple, Optional, Type from typing import Any, Sequence, Tuple, Optional, Type, Literal
from typing_extensions import Literal
PlayerType = TypeVar('PlayerType', bound=ba.Player) PlayerType = TypeVar('PlayerType', bound=ba.Player)
TeamType = TypeVar('TeamType', bound=ba.Team) TeamType = TypeVar('TeamType', bound=ba.Team)

View File

@ -62,7 +62,7 @@ disable=broad-except,
enable=useless-suppression enable=useless-suppression
[BASIC] [BASIC]
# Allowing a handfull of short names commonly understood to be iterators, # Allowing a handful of short names commonly understood to be iterators,
# math concepts, or temporary variables. # math concepts, or temporary variables.
good-names=i, good-names=i,

View File

@ -1,5 +1,5 @@
<!-- THIS FILE IS AUTO GENERATED; DO NOT EDIT BY HAND --> <!-- THIS FILE IS AUTO GENERATED; DO NOT EDIT BY HAND -->
<h4><em>last updated on 2020-08-02 for Ballistica version 1.5.24 build 20160</em></h4> <h4><em>last updated on 2020-08-02 for Ballistica version 1.5.24 build 20162</em></h4>
<p>This page documents the Python classes and functions in the 'ba' module, <p>This page documents the Python classes and functions in the 'ba' module,
which are the ones most relevant to modding in Ballistica. If you come across something you feel should be included here or could be better explained, please <a href="mailto:support@froemling.net">let me know</a>. Happy modding!</p> which are the ones most relevant to modding in Ballistica. If you come across something you feel should be included here or could be better explained, please <a href="mailto:support@froemling.net">let me know</a>. Happy modding!</p>
<hr> <hr>

View File

@ -47,9 +47,9 @@ class PipRequirement:
PIP_REQUIREMENTS = [ PIP_REQUIREMENTS = [
PipRequirement(modulename='pylint', minversion=[2, 5, 3]), PipRequirement(modulename='pylint', minversion=[2, 5, 3]),
PipRequirement(modulename='mypy', minversion=[0, 781]), PipRequirement(modulename='mypy', minversion=[0, 782]),
PipRequirement(modulename='yapf', minversion=[0, 30, 0]), PipRequirement(modulename='yapf', minversion=[0, 30, 0]),
PipRequirement(modulename='cpplint', minversion=[1, 5, 1]), PipRequirement(modulename='cpplint', minversion=[1, 5, 3]),
PipRequirement(modulename='typing_extensions'), PipRequirement(modulename='typing_extensions'),
PipRequirement(modulename='pytz'), PipRequirement(modulename='pytz'),
PipRequirement(modulename='yaml', pipname='PyYAML'), PipRequirement(modulename='yaml', pipname='PyYAML'),

View File

@ -101,10 +101,11 @@ def have_matching_fields(val1: CompoundValue, val2: CompoundValue) -> bool:
Note this just refers to the field configuration; not data. Note this just refers to the field configuration; not data.
""" """
# quick-out: matching types will always have identical fields # Quick-out: matching types will always have identical fields.
if type(val1) is type(val2): if type(val1) is type(val2):
return True return True
# otherwise do a full comparision
# Otherwise do a full comparison.
return val1.get_fields() == val2.get_fields() return val1.get_fields() == val2.get_fields()

View File

@ -37,8 +37,7 @@ from pathlib import Path
from typing import TYPE_CHECKING from typing import TYPE_CHECKING
if TYPE_CHECKING: if TYPE_CHECKING:
from typing import Dict, Union, Sequence, Optional, Any from typing import Dict, Union, Sequence, Optional, Any, Literal
from typing_extensions import Literal
# Python major version we're using for all this stuff. # Python major version we're using for all this stuff.
PYVER = '3.8' PYVER = '3.8'

View File

@ -162,10 +162,14 @@ def spelling_all() -> None:
capture_output=True).stdout.decode().splitlines() capture_output=True).stdout.decode().splitlines()
if 'Typo: In word' in line if 'Typo: In word' in line
] ]
words = [ words = [line.split('Typo: In word')[1].strip() for line in lines]
line.split('Typo: In word')[1].strip().replace("'", '')
for line in lines # Strip enclosing quotes but not internal ones.
] for i, word in enumerate(words):
assert word[0] == "'"
assert word[-1] == "'"
words[i] = word[1:-1]
_spelling(words) _spelling(words)