Skip to content

Commit

Permalink
remove typing_extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
clintpurser committed Oct 15, 2024
1 parent 8a1b717 commit 722460f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

import asyncio
from typing import Any, ClassVar, Dict, Final, List, Mapping, Optional, Sequence
from typing_extensions import Self
from viam.components.sensor import *
from viam.module.module import Module
from viam.proto.app.robot import ComponentConfig
Expand All @@ -23,8 +22,8 @@ def validate_config(cls, config: ComponentConfig) -> Sequence[str]:
raise Exception("A mock_data must be defined")

# for reading in config.attributes.fields.get("mock_data", []):
# if not isinstance(reading, Struct):
# raise Exception("mock_data must only be populated with maps of data")
# if not isinstance(reading, Struct):
# raise Exception("mock_data must only be populated with maps of data")
return []

def reconfigure(self, config: ComponentConfig, dependencies: Mapping[ResourceName, ResourceBase]):
Expand Down

0 comments on commit 722460f

Please sign in to comment.