=== Thu Mar 28 04:00:50 AM CET 2024: mypy ========== mypy --pretty --allow-redefinition --no-strict-optional --ignore-missing-imports --follow-imports silent --show-error-codes --warn-unused-ignores === ../client/pycommon ========== ----- ../client/pycommon/gmBackendListener.py -------------------------------------- ----- ../client/pycommon/gmBorg.py -------------------------------------- ----- ../client/pycommon/gmBusinessDBObject.py -------------------------------------- ../client/pycommon/gmBusinessDBObject.py:439: error: Incompatible types in assignment (expression has type "Union[dict_keys[Any, Any], Any]", variable has type "Dict[str, int]") [assignment] self._idx = self._payload.keys() ^~~~~~~~~~~~~~~~~~~~ ../client/pycommon/gmBusinessDBObject.py:516: error: Incompatible return value type (got "Union[dict_keys[Any, Any], Any]", expected "List[str]") [return-value] return self._payload.keys() ^~~~~~~~~~~~~~~~~~~~ ../client/pycommon/gmBusinessDBObject.py:747: error: Argument "queries" to "run_rw_queries" has incompatible type "List[Dict[str, Collection[str]]]"; expected "Sequence[Mapping[str, Union[Union[str, Composed], Union[Sequence[Any], Mapping[str, Any]]]]]" [arg-type] queries = queries, ^~~~~~~ Found 3 errors in 1 file (checked 1 source file) ----- ../client/pycommon/gmCfgDB.py -------------------------------------- ----- ../client/pycommon/gmCfgINI.py -------------------------------------- ----- ../client/pycommon/gmConnectionPool.py -------------------------------------- ../client/pycommon/gmConnectionPool.py:42: error: Module has no attribute "__version__"; maybe "__libpq_version__"? [attr-defined] dbapi.__version__.index('dt') ^~~~~~~~~~~~~~~~~ ../client/pycommon/gmConnectionPool.py:47: error: Module has no attribute "__version__"; maybe "__libpq_version__"? [attr-defined] dbapi.__version__.index('ext') ^~~~~~~~~~~~~~~~~ ../client/pycommon/gmConnectionPool.py:52: error: Module has no attribute "__version__"; maybe "__libpq_version__"? [attr-defined] dbapi.__version__.index('pq3') ^~~~~~~~~~~~~~~~~ ../client/pycommon/gmConnectionPool.py:86: error: Module has no attribute "__version__"; maybe "__libpq_version__"? [attr-defined] _log.info('psycopg2 module version: %s' % dbapi.__version__) ^~~~~~~~~~~~~~~~~ ../client/pycommon/gmConnectionPool.py:318: error: "DictConnection" has no attribute "original_close" [attr-defined] conn.original_close = conn.close ^~~~~~~~~~~~~~~~~~~ ../client/pycommon/gmConnectionPool.py:319: error: Cannot assign to a method [assignment] conn.close = _raise_exception_on_pooled_ro_con... ^~~~~~~~~~ ../client/pycommon/gmConnectionPool.py:646: error: "DictConnection" has no attribute "original_close" [attr-defined] conn.original_close() ^~~~~~~~~~~~~~~~~~~ ../client/pycommon/gmConnectionPool.py:695: error: Module has no attribute "errors" [attr-defined] if isinstance(exc, dbapi.errors.AdminShutdown): ^~~~~~~~~~~~ Found 8 errors in 1 file (checked 1 source file) ----- ../client/pycommon/gmCrypto.py -------------------------------------- ----- ../client/pycommon/gmDateTime.py -------------------------------------- ----- ../client/pycommon/gmDispatcher.py -------------------------------------- ----- ../client/pycommon/gmExceptions.py -------------------------------------- ----- ../client/pycommon/gmGuiBroker.py -------------------------------------- ----- ../client/pycommon/gmHooks.py -------------------------------------- ----- ../client/pycommon/gmI18N.py -------------------------------------- ../client/pycommon/gmI18N.py:111: error: Cannot assign multiple types to name "__LOCALE_ERROR" without an explicit "Type[...]" annotation [misc] __LOCALE_ERROR = Exception ^ ../client/pycommon/gmI18N.py:111: error: Incompatible types in assignment (expression has type "Type[Exception]", variable has type "Type[Error]") [assignment] __LOCALE_ERROR = Exception ^~~~~~~~~ Found 2 errors in 1 file (checked 1 source file) ----- ../client/pycommon/gmLog2.py -------------------------------------- ----- ../client/pycommon/gmLoginInfo.py -------------------------------------- ----- ../client/pycommon/gmMatchProvider.py -------------------------------------- ----- ../client/pycommon/gmMimeLib.py -------------------------------------- ----- ../client/pycommon/gmMimeMagic.py -------------------------------------- ----- ../client/pycommon/gmNetworkTools.py -------------------------------------- ----- ../client/pycommon/gmNull.py -------------------------------------- ----- ../client/pycommon/gmPG2.py -------------------------------------- ../client/pycommon/gmPG2.py:2218: error: Incompatible types in assignment (expression has type "Callable[[], Any]", variable has type "Callable[[VarArg(Any)], None]") [assignment] curs_close = curs.close ^~~~~~~~~~ ../client/pycommon/gmPG2.py:2219: error: Incompatible types in assignment (expression has type "Callable[[], None]", variable has type "Callable[[VarArg(Any)], None]") [assignment] tx_rollback = link_obj.rollback ^~~~~~~~~~~~~~~~~ ../client/pycommon/gmPG2.py:2221: error: Incompatible types in assignment (expression has type "Callable[[], None]", variable has type "Callable[[VarArg(Any)], None]") [assignment] ... readonly_rollback_just_in_case = link_obj.rollback ^~~~~~~~~~~~~~~~~ Found 3 errors in 1 file (checked 1 source file) ----- ../client/pycommon/gmPrinting.py -------------------------------------- ----- ../client/pycommon/gmPsql.py -------------------------------------- ----- ../client/pycommon/gmScanBackend.py -------------------------------------- ----- ../client/pycommon/gmScriptingListener.py -------------------------------------- ----- ../client/pycommon/gmSerialTools.py -------------------------------------- ----- ../client/pycommon/gmShellAPI.py -------------------------------------- ----- ../client/pycommon/gmTools.py -------------------------------------- ../client/pycommon/gmTools.py:444: error: Cannot determine type of "__wx" [has-type] if self.__wx: ^~~~~~~~~ Found 1 error in 1 file (checked 1 source file) ----- ../client/pycommon/gmWorkerThread.py -------------------------------------- ----- ../client/pycommon/__init__.py -------------------------------------- ----- ../client/pycommon/_mailcap__copy.py -------------------------------------- === ../client/business ========== ----- ../client/business/gmAllergy.py -------------------------------------- ----- ../client/business/gmAMTS_BMP.py -------------------------------------- ----- ../client/business/gmArriba.py -------------------------------------- ----- ../client/business/gmATC.py -------------------------------------- ----- ../client/business/gmAutoFileImport.py -------------------------------------- ----- ../client/business/gmAutoHints.py -------------------------------------- ----- ../client/business/gmBilling.py -------------------------------------- ----- ../client/business/gmCA_MSVA.py -------------------------------------- ----- ../client/business/gmClinicalCalculator.py -------------------------------------- ----- ../client/business/gmClinicalRecord.py -------------------------------------- ----- ../client/business/gmClinNarrative.py -------------------------------------- ----- ../client/business/gmCoding.py -------------------------------------- ----- ../client/business/gmDataMining.py -------------------------------------- ----- ../client/business/gmDemographicRecord.py -------------------------------------- ----- ../client/business/gmDevices.py -------------------------------------- ----- ../client/business/gmDICOM.py -------------------------------------- ../client/business/gmDICOM.py:826: error: Incompatible types in assignment (expression has type "TextIOWrapper", variable has type "BufferedWriter") [assignment] ... attachment_file = open(attachment_filen... ^~~~~~~~~~~~~~~~~~~~~... Found 1 error in 1 file (checked 1 source file) ----- ../client/business/gmDocuments.py -------------------------------------- ----- ../client/business/gmDrugDataSources.py -------------------------------------- ----- ../client/business/gmEMRStructItems.py -------------------------------------- ----- ../client/business/gmExportArea.py -------------------------------------- ----- ../client/business/gmExternalCare.py -------------------------------------- ----- ../client/business/gmFamilyHistory.py -------------------------------------- ----- ../client/business/gmForms.py -------------------------------------- ----- ../client/business/gmGenericEMRItem.py -------------------------------------- ----- ../client/business/gmHL7.py -------------------------------------- ----- ../client/business/gmIncomingData.py -------------------------------------- ----- ../client/business/gmKeywordExpansion.py -------------------------------------- ----- ../client/business/gmKVK.py -------------------------------------- ----- ../client/business/gmLinuxMedNewsXML.py -------------------------------------- ----- ../client/business/gmLOINC.py -------------------------------------- ----- ../client/business/gmMedication.py -------------------------------------- ----- ../client/business/gmOrganization.py -------------------------------------- ../client/business/gmOrganization.py:439: error: Argument "queries" to "run_rw_queries" has incompatible type "List[Dict[str, Collection[str]]]"; expected "Sequence[Mapping[str, Union[Union[str, Composed], Union[Sequence[Any], Mapping[str, Any]]]]]" [arg-type] ...G2.run_rw_queries(link_obj = link_obj, queries = queries, get_col_idx ... ^~~~~~~ ../client/business/gmOrganization.py:473: error: Module has no attribute "errors" [attr-defined] except gmPG2.dbapi.errors.ForeignKeyViolation: ^~~~~~~~~~~~~~~~~~ Found 2 errors in 1 file (checked 1 source file) ----- ../client/business/gmPathLab.py -------------------------------------- ----- ../client/business/gmPerson.py -------------------------------------- ----- ../client/business/gmPersonSearch.py -------------------------------------- ----- ../client/business/gmPracSoftAU.py -------------------------------------- ----- ../client/business/gmPraxis.py -------------------------------------- ----- ../client/business/gmProviderInbox.py -------------------------------------- ----- ../client/business/gmSoapDefs.py -------------------------------------- ----- ../client/business/gmSOAPimporter.py -------------------------------------- ----- ../client/business/gmStaff.py -------------------------------------- ----- ../client/business/gmVaccDefs.py -------------------------------------- ----- ../client/business/gmVaccination.py -------------------------------------- ----- ../client/business/gmVCard.py -------------------------------------- ----- ../client/business/gmXdtMappings.py -------------------------------------- ----- ../client/business/gmXdtObjects.py -------------------------------------- ----- ../client/business/__init__.py --------------------------------------