I18N Code Work done.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Optional, Type, cast
|
||||
from typing import Optional, Self, Type, cast
|
||||
|
||||
from PyQt6.QtCore import QObject, Qt, QUrl, pyqtSlot
|
||||
from PyQt6.QtMultimedia import (
|
||||
@@ -15,7 +15,7 @@ from PyQt6.QtMultimedia import (
|
||||
class SoundOff(QObject):
|
||||
_instance = None
|
||||
|
||||
def __new__(cls: Type[SoundOff]) -> SoundOff:
|
||||
def __new__(cls: Type[Self]) -> Self:
|
||||
if cls._instance:
|
||||
return cls._instance
|
||||
cls._instance = super(SoundOff, cls).__new__(cls)
|
||||
|
||||
Reference in New Issue
Block a user