Skip to content

Commit

Permalink
update type annotation as classvar
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasha10 committed Mar 4, 2022
1 parent b0940df commit 3b0755c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions omegaconf/basecontainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
from abc import ABC, abstractmethod
from enum import Enum
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple, Union
from typing import TYPE_CHECKING, Any, ClassVar, Dict, List, Optional, Tuple, Union

import yaml

Expand Down Expand Up @@ -44,7 +44,7 @@

class BaseContainer(Container, ABC):
# static
_resolvers: Dict[str, Any] = {}
_resolvers: ClassVar[Dict[str, Any]] = {}

def __init__(self, parent: Optional["Container"], metadata: ContainerMetadata):
if not (parent is None or isinstance(parent, Container)):
Expand Down

0 comments on commit 3b0755c

Please sign in to comment.