I\'ve recently updated to the new version of Qt5 for Python. In doing so, I\'ve been having to alter my code in accordance to some of the notable changes that have occurred.
After looking through a repository that was being updated to Qt5 as well; I found they used a line like this.
filename, _filter = QtWidgets.QFileDialog.getOpenFileName(None, "Open " + key + " Data File", '.', "(*.csv)")
filename is a string and the (*.csv) gets discarded in the _filter variable