mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
fix abstract property
This commit is contained in:
parent
b8b012df26
commit
e705358319
1 changed files with 3 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
import os
|
import os
|
||||||
import logging
|
import logging
|
||||||
import contextlib
|
import contextlib
|
||||||
from abc import ABC, abstractproperty
|
from abc import ABC, abstractmethod
|
||||||
|
|
||||||
# NOTE can't import 'typing' because of issues in Maya 2020
|
# NOTE can't import 'typing' because of issues in Maya 2020
|
||||||
# - shiboken crashes on 'typing' module import
|
# - shiboken crashes on 'typing' module import
|
||||||
|
|
@ -92,7 +92,8 @@ class HostBase(ABC):
|
||||||
self._log = logging.getLogger(self.__class__.__name__)
|
self._log = logging.getLogger(self.__class__.__name__)
|
||||||
return self._log
|
return self._log
|
||||||
|
|
||||||
@abstractproperty
|
@property
|
||||||
|
@abstractmethod
|
||||||
def name(self):
|
def name(self):
|
||||||
"""Host name."""
|
"""Host name."""
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue