Skip to content

Commit 98fcfce

Browse files
committed
Use __version__
1 parent dcbcb38 commit 98fcfce

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sdks/python/apache_beam/io/mongodbio.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
import logging
7272
import math
7373
import struct
74-
from importlib import metadata
7574
from typing import Union
7675

7776
import apache_beam as beam
@@ -268,7 +267,7 @@ def __init__(
268267
self.client = MongoClient(
269268
self.uri,
270269
**self.spec,
271-
driver=DriverInfo("Apache Beam", metadata.version("apache-beam")))
270+
driver=DriverInfo("Apache Beam", beam.__version__))
272271

273272
def estimate_size(self):
274273
with MongoClient(self.uri, **self.spec) as client:

0 commit comments

Comments
 (0)