mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-09-09 23:32:00 +00:00
796a4b7482
* Perfer `type(x) is int` to `isinstance(x, int)` This covered all additional instances I could see where `x` was user-controlled. The remaining cases are ``` $ rg -s 'isinstance.*[^_]int' tests/replication/_base.py 576: if isinstance(obj, int): synapse/util/caches/stream_change_cache.py 136: assert isinstance(stream_pos, int) 214: assert isinstance(stream_pos, int) 246: assert isinstance(stream_pos, int) 267: assert isinstance(stream_pos, int) synapse/replication/tcp/external_cache.py 133: if isinstance(result, int): synapse/metrics/__init__.py 100: if isinstance(calls, (int, float)): synapse/handlers/appservice.py 262: assert isinstance(new_token, int) synapse/config/_util.py 62: if isinstance(p, int): ``` which cover metrics, logic related to `jsonschema`, and replication and data streams. AFAICS these are all internal to Synapse * Changelog |
||
---|---|---|
.. | ||
__init__.py | ||
_base.py | ||
account_data.py | ||
account_validity.py | ||
account.py | ||
auth.py | ||
capabilities.py | ||
devices.py | ||
directory.py | ||
events.py | ||
filter.py | ||
initial_sync.py | ||
keys.py | ||
knock.py | ||
login_token_request.py | ||
login.py | ||
logout.py | ||
models.py | ||
mutual_rooms.py | ||
notifications.py | ||
openid.py | ||
password_policy.py | ||
presence.py | ||
profile.py | ||
push_rule.py | ||
pusher.py | ||
read_marker.py | ||
receipts.py | ||
register.py | ||
relations.py | ||
rendezvous.py | ||
report_event.py | ||
room_batch.py | ||
room_keys.py | ||
room_upgrade_rest_servlet.py | ||
room.py | ||
sendtodevice.py | ||
sync.py | ||
tags.py | ||
thirdparty.py | ||
tokenrefresh.py | ||
transactions.py | ||
user_directory.py | ||
versions.py | ||
voip.py |