Skip to content

Commit

Permalink
Add optional to the Attributes field
Browse files Browse the repository at this point in the history
  • Loading branch information
vivek378521 committed Jul 4, 2024
1 parent 6a4595e commit dbe9b73
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def get_meter(
name: str,
version: Optional[str] = None,
schema_url: Optional[str] = None,
attributes: Attributes = None,
attributes: Optional[Attributes] = None,
) -> "Meter":
"""Returns a `Meter` for use by the given instrumentation library.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ def get_meter(
name: str,
version: Optional[str] = None,
schema_url: Optional[str] = None,
attributes: Attributes = None,
attributes: Optional[Attributes] = None,
) -> Meter:

if self._disabled:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def name(self) -> str:
return self._name

@property
def attributes(self) -> Optional[Attributes]:
def attributes(self) -> Attributes:
return self._attributes

def to_json(self, indent=4) -> str:
Expand Down

0 comments on commit dbe9b73

Please sign in to comment.