lint fixes

This commit is contained in:
Maxim Devaev 2025-05-03 04:27:21 +03:00
parent 7d7edb1c03
commit b7715b731e
4 changed files with 8 additions and 3 deletions

View File

@ -281,7 +281,7 @@ class _PortsDict(Generic[_T]):
else: else:
self.kvs[port] = value self.kvs[port] = value
def __eq__(self, other: "_PortsDict[_T]") -> bool: def __eq__(self, other: object) -> bool:
if not isinstance(other, self.__class__): if not isinstance(other, self.__class__):
return False return False
return (self.kvs == other.kvs) return (self.kvs == other.kvs)

View File

@ -59,6 +59,7 @@ Dumper.ignore_aliases
_auth_server_port_fixture _auth_server_port_fixture
_test_user _test_user
Switch.__x_set_dummies
Switch.__x_set_port_names Switch.__x_set_port_names
Switch.__x_set_atx_cp_delays Switch.__x_set_atx_cp_delays
Switch.__x_set_atx_cpl_delays Switch.__x_set_atx_cpl_delays
@ -69,16 +70,19 @@ Nak.NO_DOWNLINK
Nak.DOWNLINK_OVERFLOW Nak.DOWNLINK_OVERFLOW
UnitFlags.flashing_busy UnitFlags.flashing_busy
UnitFlags.has_hpd UnitFlags.has_hpd
StateCache.get_dummies
StateCache.get_port_names StateCache.get_port_names
StateCache.get_atx_cp_delays StateCache.get_atx_cp_delays
StateCache.get_atx_cpl_delays StateCache.get_atx_cpl_delays
StorageContext.write_edids StorageContext.write_edids
StorageContext.write_dummies
StorageContext.write_colors StorageContext.write_colors
StorageContext.write_port_names StorageContext.write_port_names
StorageContext.write_atx_cp_delays StorageContext.write_atx_cp_delays
StorageContext.write_atx_cpl_delays StorageContext.write_atx_cpl_delays
StorageContext.write_atx_cr_delays StorageContext.write_atx_cr_delays
StorageContext.read_edids StorageContext.read_edids
StorageContext.read_dummies
StorageContext.read_colors StorageContext.read_colors
StorageContext.read_port_names StorageContext.read_port_names
StorageContext.read_atx_cp_delays StorageContext.read_atx_cp_delays

View File

@ -241,7 +241,8 @@ export function MediaStreamer(__setActive, __setInactive, __setInfo, __orient) {
if (__decoder !== null) { if (__decoder !== null) {
try { try {
__decoder.close(); __decoder.close();
} catch { // eslint-disable-line no-empty } catch {
// Pass
} finally { } finally {
__decoder = null; __decoder = null;
__codec = ""; __codec = "";

View File

@ -486,7 +486,7 @@ export function Switch() {
<div class="switch-box"> <div class="switch-box">
<input <input
type="checkbox" id="__switch-port-dummy-switch" type="checkbox" id="__switch-port-dummy-switch"
${model.ports[port].video.dummy ? 'checked' : ''} ${model.ports[port].video.dummy ? "checked" : ""}
/> />
<label for="__switch-port-dummy-switch"> <label for="__switch-port-dummy-switch">
<span class="switch-inner"></span> <span class="switch-inner"></span>