We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcbcb38 commit 98fcfceCopy full SHA for 98fcfce
sdks/python/apache_beam/io/mongodbio.py
@@ -71,7 +71,6 @@
71
import logging
72
import math
73
import struct
74
-from importlib import metadata
75
from typing import Union
76
77
import apache_beam as beam
@@ -268,7 +267,7 @@ def __init__(
268
267
self.client = MongoClient(
269
self.uri,
270
**self.spec,
271
- driver=DriverInfo("Apache Beam", metadata.version("apache-beam")))
+ driver=DriverInfo("Apache Beam", beam.__version__))
272
273
def estimate_size(self):
274
with MongoClient(self.uri, **self.spec) as client:
0 commit comments