Skip to content

Commit

Permalink
Update config metaclass
Browse files Browse the repository at this point in the history
  • Loading branch information
ahopkins committed Dec 27, 2022
1 parent 48a8d40 commit f1e6b00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sanic/config.py
Expand Up @@ -2,6 +2,7 @@

import sys

from abc import ABCMeta
from inspect import getmembers, isclass, isdatadescriptor
from os import environ
from pathlib import Path
Expand Down Expand Up @@ -75,7 +76,7 @@
}


class DescriptorMeta(type):
class DescriptorMeta(ABCMeta):
def __init__(cls, *_):
cls.__setters__ = {name for name, _ in getmembers(cls, cls._is_setter)}

Expand Down

0 comments on commit f1e6b00

Please sign in to comment.